Class JUnit4StackTraceWriter
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
- All Implemented Interfaces:
StackTraceWriter
Writes out a specific
Failure for
surefire as a stacktrace.- Author:
- Karl M. Davis
-
Constructor Summary
ConstructorsConstructorDescriptionJUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception associated with this failure.At the moment, returns the same aswriteTraceToString().
-
Constructor Details
-
JUnit4StackTraceWriter
public JUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure) Constructor.- Parameters:
junitFailure- theFailurethat this will be operating on
-
-
Method Details
-
writeTraceToString
- Specified by:
writeTraceToStringin interfaceStackTraceWriter
-
smartTrimmedStackTrace
- Specified by:
smartTrimmedStackTracein interfaceStackTraceWriter
-
writeTrimmedTraceToString
At the moment, returns the same aswriteTraceToString().- Specified by:
writeTrimmedTraceToStringin interfaceStackTraceWriter- See Also:
-
getThrowable
Returns the exception associated with this failure.- Specified by:
getThrowablein interfaceStackTraceWriter- See Also:
-