Package org.apache.maven.surefire.report
Class PojoStackTraceWriter
- java.lang.Object
-
- org.apache.maven.surefire.report.PojoStackTraceWriter
-
- All Implemented Interfaces:
StackTraceWriter
public class PojoStackTraceWriter extends java.lang.Object implements StackTraceWriter
Write the trace out for a POJO test.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
t
private java.lang.String
testClass
private java.lang.String
testMethod
-
Constructor Summary
Constructors Constructor Description PojoStackTraceWriter(java.lang.String testClass, java.lang.String testMethod, java.lang.Throwable t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
SafeThrowable
getThrowable()
Retrieve the throwable for this writer.int
hashCode()
private static boolean
isMultiLineExceptionMessage(java.lang.Throwable t)
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
-
isMultiLineExceptionMessage
private static boolean isMultiLineExceptionMessage(java.lang.Throwable t)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-