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 java.lang.Object
implements StackTraceWriter

Write the trace out for a POJO test.

Author:
Brett Porter

Field Summary
protected  java.lang.String testClass
           
protected  java.lang.String testMethod
           
 
Constructor Summary
PojoStackTraceWriter(java.lang.String testClass, java.lang.String testMethod, java.lang.Throwable t)
           
 
Method Summary
 java.lang.Throwable getThrowable()
          Retrieve the throwable for this writer.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testClass

protected final java.lang.String testClass

testMethod

protected final java.lang.String testMethod
Constructor Detail

PojoStackTraceWriter

public PojoStackTraceWriter(java.lang.String testClass,
                            java.lang.String testMethod,
                            java.lang.Throwable t)
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 interface StackTraceWriter
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 interface StackTraceWriter
Returns:
the trace

getThrowable

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

Specified by:
getThrowable in interface StackTraceWriter
Returns:
the throwable


Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.