Class JUnitTestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JUnitTestException
    extends java.lang.RuntimeException

    Provides a runtime exception for unit testing.

    Since:
    5.1.4
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnitTestException​(org.junit.runner.Result result, java.lang.String xmlReport)
      Construct junit runtime exception based on result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.runner.Result getResult()
      Get JUnit result object.
      java.lang.String getXmlReport()
      Get xml report.
      java.lang.String toString()
      Return a string representation of this object.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JUnitTestException

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

      • getResult

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

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

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