Class LegacyPojoStackTraceWriter
- java.lang.Object
-
- org.apache.maven.surefire.api.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 SafeThrowablegetThrowable()Retrieve the throwable for this writer.java.lang.StringsmartTrimmedStackTrace()Get the "smart" trimmed (1-2 lines) stacktrace.java.lang.StringwriteTraceToString()Write the throwable to a string, without trimming.java.lang.StringwriteTrimmedTraceToString()Write the throwable to a string, trimming extra locations.
-
-
-
Method Detail
-
writeTraceToString
public java.lang.String writeTraceToString()
Description copied from interface:StackTraceWriterWrite the throwable to a string, without trimming.- Specified by:
writeTraceToStringin interfaceStackTraceWriter- Returns:
- the trace
-
smartTrimmedStackTrace
public java.lang.String smartTrimmedStackTrace()
Description copied from interface:StackTraceWriterGet the "smart" trimmed (1-2 lines) stacktrace.- Specified by:
smartTrimmedStackTracein interfaceStackTraceWriter- Returns:
- the trace
-
writeTrimmedTraceToString
public java.lang.String writeTrimmedTraceToString()
Description copied from interface:StackTraceWriterWrite the throwable to a string, trimming extra locations.- Specified by:
writeTrimmedTraceToStringin interfaceStackTraceWriter- Returns:
- the trace
-
getThrowable
public SafeThrowable getThrowable()
Description copied from interface:StackTraceWriterRetrieve the throwable for this writer.- Specified by:
getThrowablein interfaceStackTraceWriter- Returns:
- the throwable
-
-