public class JUnit4StackTraceWriter extends Object implements StackTraceWriter
Failure for
surefire as a stacktrace.| Modifier and Type | Field and Description |
|---|---|
protected org.junit.runner.notification.Failure |
junitFailure |
| Constructor and Description |
|---|
JUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTestClassName() |
SafeThrowable |
getThrowable()
Returns the exception associated with this failure.
|
String |
smartTrimmedStackTrace()
Get the "smart" trimmed (1-2 lines) stacktrace.
|
String |
writeTraceToString()
Write the throwable to a string, without trimming.
|
String |
writeTrimmedTraceToString()
At the moment, returns the same as
writeTraceToString(). |
public JUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure)
junitFailure - the Failure that this will be operating onpublic String writeTraceToString()
StackTraceWriterwriteTraceToString in interface StackTraceWriterprotected String getTestClassName()
public String smartTrimmedStackTrace()
StackTraceWritersmartTrimmedStackTrace in interface StackTraceWriterpublic String writeTrimmedTraceToString()
writeTraceToString().writeTrimmedTraceToString in interface StackTraceWriterStackTraceWriter.writeTrimmedTraceToString()public SafeThrowable getThrowable()
getThrowable in interface StackTraceWriterStackTraceWriter.getThrowable()Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.