public class JUnit4StackTraceWriter extends Object implements StackTraceWriter
Failure for
surefire as a stacktrace.| Modifier and Type | Field and Description |
|---|---|
protected Failure |
junitFailure |
| Constructor and Description |
|---|
JUnit4StackTraceWriter(Failure junitFailure)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTestClassName() |
protected String |
getTestMethodName() |
SafeThrowable |
getThrowable()
Returns the exception associated with this failure.
|
String |
smartTrimmedStackTrace() |
String |
writeTraceToString() |
String |
writeTrimmedTraceToString()
At the moment, returns the same as
writeTraceToString(). |
protected final Failure junitFailure
public String writeTraceToString()
writeTraceToString in interface StackTraceWriterprotected String getTestClassName()
protected String getTestMethodName()
public String smartTrimmedStackTrace()
smartTrimmedStackTrace in interface StackTraceWriterpublic String writeTrimmedTraceToString()
writeTraceToString().writeTrimmedTraceToString in interface StackTraceWriterStackTraceWriter.writeTrimmedTraceToString()public SafeThrowable getThrowable()
getThrowable in interface StackTraceWriterStackTraceWriter.getThrowable()Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.