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$
- See Also:
-
Field Summary
FieldsFields inherited from class 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 TestErrorConditionException
addStackTraceDescriptionMethods inherited from class 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"
-