Class JUnit46StackTraceWriter
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
org.apache.maven.surefire.common.junit48.JUnit46StackTraceWriter
- All Implemented Interfaces:
org.apache.maven.surefire.report.StackTraceWriter
public class JUnit46StackTraceWriter
extends org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
A stacktrace writer that requires at least junit 4.6 to run. Note that we only use this for 4.8 and higher
Writes out a specific
Writes out a specific
Failure
for
surefire as a stacktrace.- Author:
- Karl M. Davis, Kristian Rosenvold
-
Field Summary
Fields inherited from class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
junitFailure
-
Constructor Summary
ConstructorsConstructorDescriptionJUnit46StackTraceWriter
(org.junit.runner.notification.Failure junitFailure) Constructor. -
Method Summary
Methods inherited from class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
getThrowable, smartTrimmedStackTrace, writeTraceToString, writeTrimmedTraceToString
-
Constructor Details
-
JUnit46StackTraceWriter
public JUnit46StackTraceWriter(org.junit.runner.notification.Failure junitFailure) Constructor.- Parameters:
junitFailure
- theFailure
that this will be operating on
-
-
Method Details
-
getTestClassName
- Overrides:
getTestClassName
in classorg.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
-
getTestMethodName
- Overrides:
getTestMethodName
in classorg.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
-