Class AssertException

All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • AssertException

      public AssertException()
  • Method Details

    • getTestReport

      public TestReport getTestReport(Test test)
      TestErrorConditionException implementation.
      Overrides:
      getTestReport in class TestErrorConditionException
    • addDescription

      public abstract void addDescription(TestReport report)
      Requests that the exception populates the TestReport with the relevant information.
    • getAssertionType

      public abstract String getAssertionType()
      Returns the type of assertion which failed. e.g., "assertEquals"