Package org.apache.batik.test
Class AssertNullException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.batik.test.TestErrorConditionException
-
- org.apache.batik.test.AssertException
-
- org.apache.batik.test.AssertNullException
-
- All Implemented Interfaces:
java.io.Serializable
public class AssertNullException extends AssertException
Exception which Tests can throw when a specificassertNull
fails.- Version:
- $Id: AssertNullException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ASSERTION_TYPE
protected java.lang.Object
cmp
Objects which should have be equalprotected java.lang.Object
ref
Objects which should have be equal-
Fields inherited from class org.apache.batik.test.AssertException
ENTRY_KEY_ASSERTION_TYPE
-
Fields inherited from class org.apache.batik.test.TestErrorConditionException
errorCode
-
-
Constructor Summary
Constructors Constructor Description AssertNullException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDescription(TestReport report)
Requests that the exception populates the TestReport with the relevant information.java.lang.String
getAssertionType()
Returns the type of assertion which failed.-
Methods inherited from class org.apache.batik.test.AssertException
getTestReport
-
Methods inherited from class org.apache.batik.test.TestErrorConditionException
addStackTraceDescription
-
-
-
-
Field Detail
-
ASSERTION_TYPE
public static final java.lang.String ASSERTION_TYPE
- See Also:
- Constant Field Values
-
ref
protected java.lang.Object ref
Objects which should have be equal
-
cmp
protected java.lang.Object cmp
Objects which should have be equal
-
-
Method Detail
-
addDescription
public void addDescription(TestReport report)
Requests that the exception populates the TestReport with the relevant information.- Specified by:
addDescription
in classAssertException
-
getAssertionType
public java.lang.String getAssertionType()
Description copied from class:AssertException
Returns the type of assertion which failed. e.g., "assertEquals"- Specified by:
getAssertionType
in classAssertException
-
-