org.junitee.output
Class AbstractOutput

java.lang.Object
  extended byorg.junitee.output.AbstractOutput
All Implemented Interfaces:
OutputProducer
Direct Known Subclasses:
HTMLOutput, XMLOutput

public abstract class AbstractOutput
extends java.lang.Object
implements OutputProducer

Since:
1.5
Version:
$Revision: 1.7 $
Author:
Oliver Rossmueller

Constructor Summary
AbstractOutput(TestRunnerResults results, boolean filterTrace)
           
 
Method Summary
protected  java.lang.String exceptionToString(java.lang.Throwable t)
           
 TestInfo getCurrentInfo()
           
protected  java.lang.String getEJBExceptionDetail(java.lang.Throwable t)
          Checks to see if t is a RemoteException containing an EJBException, and if it is, prints the nested exception inside the EJBException.
protected  java.util.List getErrorMessages()
           
protected  java.util.List getSuiteInfo()
           
protected  long getTimestamp()
           
protected  boolean isFailure()
           
protected  boolean isFilterTrace()
           
protected  boolean isFinished()
           
protected  boolean isSingleTest()
           
protected  boolean isStopped()
           
abstract  void render()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOutput

public AbstractOutput(TestRunnerResults results,
                      boolean filterTrace)
Method Detail

render

public abstract void render()
Specified by:
render in interface OutputProducer

getCurrentInfo

public TestInfo getCurrentInfo()

getTimestamp

protected long getTimestamp()

getSuiteInfo

protected java.util.List getSuiteInfo()

isFailure

protected boolean isFailure()

isFilterTrace

protected boolean isFilterTrace()

isSingleTest

protected boolean isSingleTest()

isFinished

protected boolean isFinished()

isStopped

protected boolean isStopped()

getErrorMessages

protected java.util.List getErrorMessages()

exceptionToString

protected java.lang.String exceptionToString(java.lang.Throwable t)

getEJBExceptionDetail

protected java.lang.String getEJBExceptionDetail(java.lang.Throwable t)
Checks to see if t is a RemoteException containing an EJBException, and if it is, prints the nested exception inside the EJBException. This is necessary because the EJBException.printStackTrace() method isn't intelligent enough to print the nexted exception.