Class LegacyPojoStackTraceWriter
- java.lang.Object
-
- org.apache.maven.surefire.api.report.LegacyPojoStackTraceWriter
-
- All Implemented Interfaces:
StackTraceWriter
public class LegacyPojoStackTraceWriter extends Object implements StackTraceWriter
Write the trace out for a POJO test. Java 1.5 compatible.- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description LegacyPojoStackTraceWriter(String testClass, String testMethod, Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SafeThrowable
getThrowable()
Retrieve the throwable for this writer.String
smartTrimmedStackTrace()
Get the "smart" trimmed (1-2 lines) stacktrace.String
writeTraceToString()
Write the throwable to a string, without trimming.String
writeTrimmedTraceToString()
Write the throwable to a string, trimming extra locations.
-
-
-
Method Detail
-
writeTraceToString
public String writeTraceToString()
Description copied from interface:StackTraceWriter
Write the throwable to a string, without trimming.- Specified by:
writeTraceToString
in interfaceStackTraceWriter
- Returns:
- the trace
-
smartTrimmedStackTrace
public String smartTrimmedStackTrace()
Description copied from interface:StackTraceWriter
Get the "smart" trimmed (1-2 lines) stacktrace.- Specified by:
smartTrimmedStackTrace
in interfaceStackTraceWriter
- Returns:
- the trace
-
writeTrimmedTraceToString
public String writeTrimmedTraceToString()
Description copied from interface:StackTraceWriter
Write the throwable to a string, trimming extra locations.- Specified by:
writeTrimmedTraceToString
in interfaceStackTraceWriter
- Returns:
- the trace
-
getThrowable
public SafeThrowable getThrowable()
Description copied from interface:StackTraceWriter
Retrieve the throwable for this writer.- Specified by:
getThrowable
in interfaceStackTraceWriter
- Returns:
- the throwable
-
-