org.apache.maven.surefire.junit4
Class JUnit4StackTraceWriter
java.lang.Object
org.apache.maven.surefire.junit4.JUnit4StackTraceWriter
- All Implemented Interfaces:
- org.apache.maven.surefire.report.StackTraceWriter
public class JUnit4StackTraceWriter
- extends java.lang.Object
- implements org.apache.maven.surefire.report.StackTraceWriter
Writes out a specific Failure
for
surefire as a stacktrace.
- Author:
- Karl M. Davis
Field Summary |
private org.junit.runner.notification.Failure |
junitFailure
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
junitFailure
private org.junit.runner.notification.Failure junitFailure
JUnit4StackTraceWriter
public JUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure)
- Constructor.
- Parameters:
junitFailure
- the Failure
that this will be operating on
writeTraceToString
public java.lang.String writeTraceToString()
- Specified by:
writeTraceToString
in interface org.apache.maven.surefire.report.StackTraceWriter
writeTrimmedTraceToString
public java.lang.String writeTrimmedTraceToString()
- At the moment, returns the same as
writeTraceToString()
.
- Specified by:
writeTrimmedTraceToString
in interface org.apache.maven.surefire.report.StackTraceWriter
- See Also:
StackTraceWriter.writeTrimmedTraceToString()
getThrowable
public java.lang.Throwable getThrowable()
- Returns the exception associated with this failure.
- Specified by:
getThrowable
in interface org.apache.maven.surefire.report.StackTraceWriter
- See Also:
StackTraceWriter.getThrowable()