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
- theFailure
that this will be operating on
-
-
Method Details
-
writeTraceToString
- Specified by:
writeTraceToString
in interfaceStackTraceWriter
-
smartTrimmedStackTrace
- Specified by:
smartTrimmedStackTrace
in interfaceStackTraceWriter
-
writeTrimmedTraceToString
At the moment, returns the same aswriteTraceToString()
.- Specified by:
writeTrimmedTraceToString
in interfaceStackTraceWriter
- See Also:
-
getThrowable
Returns the exception associated with this failure.- Specified by:
getThrowable
in interfaceStackTraceWriter
- See Also:
-