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 Stringprotected Stringorg.apache.maven.surefire.report.SafeThrowableReturns 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- theFailurethat this will be operating on
-
-
Method Details
-
writeTraceToString
- Specified by:
writeTraceToStringin interfaceorg.apache.maven.surefire.report.StackTraceWriter
-
getTestClassName
-
getTestMethodName
-
smartTrimmedStackTrace
- Specified by:
smartTrimmedStackTracein interfaceorg.apache.maven.surefire.report.StackTraceWriter
-
writeTrimmedTraceToString
At the moment, returns the same aswriteTraceToString().- Specified by:
writeTrimmedTraceToStringin interfaceorg.apache.maven.surefire.report.StackTraceWriter- See Also:
-
StackTraceWriter.writeTrimmedTraceToString()
-
getThrowable
public org.apache.maven.surefire.report.SafeThrowable getThrowable()Returns the exception associated with this failure.- Specified by:
getThrowablein interfaceorg.apache.maven.surefire.report.StackTraceWriter- See Also:
-
StackTraceWriter.getThrowable()
-