public class JUnit4StackTraceWriter extends Object implements StackTraceWriter
Failure
for
surefire as a stacktrace.Constructor and Description |
---|
JUnit4StackTraceWriter(org.junit.runner.notification.Failure junitFailure)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SafeThrowable |
getThrowable()
Returns the exception associated with this failure.
|
String |
smartTrimmedStackTrace() |
String |
writeTraceToString() |
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()
writeTraceToString
in interface StackTraceWriter
public String smartTrimmedStackTrace()
smartTrimmedStackTrace
in interface StackTraceWriter
public String writeTrimmedTraceToString()
writeTraceToString()
.writeTrimmedTraceToString
in interface StackTraceWriter
StackTraceWriter.writeTrimmedTraceToString()
public SafeThrowable getThrowable()
getThrowable
in interface StackTraceWriter
StackTraceWriter.getThrowable()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.