Package org.apache.batik.test
Class AssertException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.batik.test.TestErrorConditionException
org.apache.batik.test.AssertException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AssertEqualsException,AssertNullException,AssertTrueException
Exception which Tests can throw when a specific assertion fails.
- Version:
- $Id: AssertException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.batik.test.TestErrorConditionException
errorCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddDescription(TestReport report) Requests that the exception populates the TestReport with the relevant information.abstract StringReturns the type of assertion which failed.getTestReport(Test test) TestErrorConditionExceptionimplementation.Methods inherited from class org.apache.batik.test.TestErrorConditionException
addStackTraceDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ENTRY_KEY_ASSERTION_TYPE
- See Also:
-
-
Constructor Details
-
AssertException
public AssertException()
-
-
Method Details
-
getTestReport
TestErrorConditionExceptionimplementation.- Overrides:
getTestReportin classTestErrorConditionException
-
addDescription
Requests that the exception populates the TestReport with the relevant information. -
getAssertionType
Returns the type of assertion which failed. e.g., "assertEquals"
-