org.apache.maven.surefire.report
Class PojoStackTraceWriter

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

public class PojoStackTraceWriter
extends Object
implements StackTraceWriter

Write the trace out for a POJO test.

Author:
Brett Porter

Field Summary
protected  String testClass
           
protected  String testMethod
           
 
Constructor Summary
PojoStackTraceWriter(String testClass, String testMethod, Throwable t)
           
 
Method Summary
 Throwable getThrowable()
          Retrieve the throwable for this writer.
 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
 

Field Detail

testClass

protected final String testClass

testMethod

protected final String testMethod
Constructor Detail

PojoStackTraceWriter

public PojoStackTraceWriter(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

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 Throwable getThrowable()
Description copied from interface: StackTraceWriter
Retrieve the throwable for this writer.

Specified by:
getThrowable in interface StackTraceWriter
Returns:
the throwable


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