Package org.apache.batik.test
Class AssertEqualsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.batik.test.TestErrorConditionException
-
- org.apache.batik.test.AssertException
-
- org.apache.batik.test.AssertEqualsException
-
- All Implemented Interfaces:
java.io.Serializable
public class AssertEqualsException extends AssertException
Exception which Tests can throw when a specificassertEqualsfails.- Version:
- $Id: AssertEqualsException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringASSERTION_TYPEprotected java.lang.ObjectcmpObjects which should have be equalstatic java.lang.StringENTRY_KEY_CMP_OBJECTstatic java.lang.StringENTRY_KEY_REF_OBJECTprotected java.lang.ObjectrefObjects 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 AssertEqualsException(java.lang.Object ref, java.lang.Object cmp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescription(TestReport report)Requests that the exception populates the TestReport with the relevant information.java.lang.StringgetAssertionType()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
-
ENTRY_KEY_REF_OBJECT
public static final java.lang.String ENTRY_KEY_REF_OBJECT
- See Also:
- Constant Field Values
-
ENTRY_KEY_CMP_OBJECT
public static final java.lang.String ENTRY_KEY_CMP_OBJECT
- See Also:
- Constant Field Values
-
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:
addDescriptionin classAssertException
-
getAssertionType
public java.lang.String getAssertionType()
Description copied from class:AssertExceptionReturns the type of assertion which failed. e.g., "assertEquals"- Specified by:
getAssertionTypein classAssertException
-
-