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