Class JUnitTestException

All Implemented Interfaces:
Serializable

public class JUnitTestException extends RuntimeException

Provides a runtime exception for unit testing.

Since:
5.1.4
See Also:
  • Constructor Details

    • JUnitTestException

      public JUnitTestException(org.junit.runner.Result result, String xmlReport)
      Construct junit runtime exception based on result.
      Parameters:
      result - junit result object
      xmlReport - junit xml report
  • Method Details

    • getResult

      public org.junit.runner.Result getResult()
      Get JUnit result object.
      Returns:
      JUnit result object
    • getXmlReport

      public String getXmlReport()
      Get xml report.
      Returns:
      xml report
    • toString

      public String toString()
      Return a string representation of this object.
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this object.