Class JUnit4StackTraceWriter
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
- All Implemented Interfaces:
org.apache.maven.surefire.report.StackTraceWriter
public class JUnit4StackTraceWriter
extends Object
implements org.apache.maven.surefire.report.StackTraceWriter
Writes out a specific
Failure
for
surefire as a stacktrace.- Author:
- Karl M. Davis
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.junit.runner.notification.Failure
-
Constructor Summary
ConstructorsConstructorDescriptionJUnit4StackTraceWriter
(org.junit.runner.notification.Failure junitFailure) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
org.apache.maven.surefire.report.SafeThrowable
Returns the exception associated with this failure.At the moment, returns the same aswriteTraceToString()
.
-
Field Details
-
junitFailure
protected final org.junit.runner.notification.Failure junitFailure
-
-
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 interfaceorg.apache.maven.surefire.report.StackTraceWriter
-
getTestClassName
-
getTestMethodName
-
smartTrimmedStackTrace
- Specified by:
smartTrimmedStackTrace
in interfaceorg.apache.maven.surefire.report.StackTraceWriter
-
writeTrimmedTraceToString
At the moment, returns the same aswriteTraceToString()
.- Specified by:
writeTrimmedTraceToString
in interfaceorg.apache.maven.surefire.report.StackTraceWriter
- See Also:
-
getThrowable
public org.apache.maven.surefire.report.SafeThrowable getThrowable()Returns the exception associated with this failure.- Specified by:
getThrowable
in interfaceorg.apache.maven.surefire.report.StackTraceWriter
- See Also:
-