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:
java.io.Serializable
- Direct Known Subclasses:
AssertEqualsException
,AssertNullException
,AssertTrueException
public abstract class AssertException extends TestErrorConditionException
Exception which Tests can throw when a specific assertion fails.- Version:
- $Id: AssertException.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
ENTRY_KEY_ASSERTION_TYPE
-
Fields inherited from class org.apache.batik.test.TestErrorConditionException
errorCode
-
-
Constructor Summary
Constructors Constructor Description AssertException()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addDescription(TestReport report)
Requests that the exception populates the TestReport with the relevant information.abstract java.lang.String
getAssertionType()
Returns the type of assertion which failed.TestReport
getTestReport(Test test)
TestErrorConditionException
implementation.-
Methods inherited from class org.apache.batik.test.TestErrorConditionException
addStackTraceDescription
-
-
-
-
Field Detail
-
ENTRY_KEY_ASSERTION_TYPE
public static final java.lang.String ENTRY_KEY_ASSERTION_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTestReport
public TestReport getTestReport(Test test)
TestErrorConditionException
implementation.- Overrides:
getTestReport
in classTestErrorConditionException
-
addDescription
public abstract void addDescription(TestReport report)
Requests that the exception populates the TestReport with the relevant information.
-
getAssertionType
public abstract java.lang.String getAssertionType()
Returns the type of assertion which failed. e.g., "assertEquals"
-
-