org.apache.maven.surefire.report
Class LegacyPojoStackTraceWriter

java.lang.Object
  extended by org.apache.maven.surefire.report.LegacyPojoStackTraceWriter
All Implemented Interfaces:
StackTraceWriter

public class LegacyPojoStackTraceWriter
extends Object
implements StackTraceWriter

Write the trace out for a POJO test. Java 1.3 compatible.

Author:
Brett Porter

Constructor Summary
LegacyPojoStackTraceWriter(String testClass, String testMethod, Throwable t)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyPojoStackTraceWriter

public LegacyPojoStackTraceWriter(String testClass,
                                  String testMethod,
                                  Throwable t)
Method Detail

writeTraceToString

public String writeTraceToString()
Description copied from interface: StackTraceWriter
Write the throwable to a string, without trimming.

Specified by:
writeTraceToString in interface StackTraceWriter
Returns:
the trace

smartTrimmedStackTrace

public String smartTrimmedStackTrace()
Description copied from interface: StackTraceWriter
Get the "smart" trimmed (1-2 lines) stacktrace.

Specified by:
smartTrimmedStackTrace in interface StackTraceWriter
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 interface StackTraceWriter
Returns:
the trace

getThrowable

public SafeThrowable getThrowable()
Description copied from interface: StackTraceWriter
Retrieve the throwable for this writer.

Specified by:
getThrowable in interface StackTraceWriter
Returns:
the throwable


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.