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:
Serializable
Exception which Tests can throw when a specific
assertEquals fails.- Version:
- $Id$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected ObjectObjects which should have be equalstatic final Stringstatic final Stringprotected ObjectObjects which should have be equalFields inherited from class AssertException
ENTRY_KEY_ASSERTION_TYPEFields inherited from class TestErrorConditionException
errorCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(TestReport report) Requests that the exception populates the TestReport with the relevant information.Returns the type of assertion which failed.Methods inherited from class AssertException
getTestReportMethods inherited from class TestErrorConditionException
addStackTraceDescriptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ENTRY_KEY_REF_OBJECT
- See Also:
-
ENTRY_KEY_CMP_OBJECT
- See Also:
-
ASSERTION_TYPE
- See Also:
-
ref
Objects which should have be equal -
cmp
Objects which should have be equal
-
-
Constructor Details
-
AssertEqualsException
-
-
Method Details
-
addDescription
Requests that the exception populates the TestReport with the relevant information.- Specified by:
addDescriptionin classAssertException
-
getAssertionType
Description copied from class:AssertExceptionReturns the type of assertion which failed. e.g., "assertEquals"- Specified by:
getAssertionTypein classAssertException
-