Package com.avoka.tm.test
Class JUnitTestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.avoka.tm.test.JUnitTestException
-
- All Implemented Interfaces:
Serializable
public class JUnitTestException extends 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, 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.String
getXmlReport()
Get xml report.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
-
-
-
-
Constructor Detail
-
JUnitTestException
public JUnitTestException(org.junit.runner.Result result, String xmlReport)
Construct junit runtime exception based on result.- Parameters:
result
- junit result objectxmlReport
- junit xml report
-
-
Method Detail
-
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
-
-