JUnitTestException
Class JUnitTestException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- com.avoka.tm.test.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](../../../../serialized-form.html#com.avoka.tm.test.JUnitTestException)
Constructor Summary
Constructors
Constructor and Description
`[JUnitTestException](../../../../com/avoka/tm/test/JUnitTestException.html#JUnitTestException-org.junit.runner.Result-java.lang.String-)(org.junit.runner.Result result, java.lang.String xmlReport)`
Construct junit runtime exception based on result.
Method Summary
All Methods[Instance Methods](javascript:show(2);)[Concrete Methods](javascript:show(8);)
Modifier and Type
Method and Description
`org.junit.runner.Result`
`[getResult](../../../../com/avoka/tm/test/JUnitTestException.html#getResult--)()`
Get JUnit result object.
`java.lang.String`
`[getXmlReport](../../../../com/avoka/tm/test/JUnitTestException.html#getXmlReport--)()`
Get xml report.
`java.lang.String`
`[toString](../../../../com/avoka/tm/test/JUnitTestException.html#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
`equals, 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.
Class