org.junitee.runner
Class TestInfo

java.lang.Object
  extended byorg.junitee.runner.TestInfo

public class TestInfo
extends java.lang.Object

This class holds information about on test.

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

Constructor Summary
TestInfo(junit.framework.Test test)
           
 
Method Summary
 long getElapsedTime()
           
 java.lang.Throwable getError()
          Answer the errors
 java.lang.Throwable getFailure()
          Answer the failures
 junit.framework.Test getTest()
           
 java.lang.String getTestClassName()
           
 java.lang.String getTestName()
           
 boolean hasError()
           
 boolean hasFailure()
           
 boolean isTestCase()
           
 void setElapsedTime(long elapsedTime)
           
 void setError(java.lang.Throwable t)
           
 void setFailure(java.lang.Throwable t)
           
 boolean successful()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestInfo

public TestInfo(junit.framework.Test test)
Method Detail

getTest

public junit.framework.Test getTest()

getElapsedTime

public long getElapsedTime()

setElapsedTime

public void setElapsedTime(long elapsedTime)

getTestClassName

public java.lang.String getTestClassName()

getTestName

public java.lang.String getTestName()

isTestCase

public boolean isTestCase()

setError

public void setError(java.lang.Throwable t)

setFailure

public void setFailure(java.lang.Throwable t)

hasFailure

public boolean hasFailure()

hasError

public boolean hasError()

successful

public boolean successful()

getFailure

public java.lang.Throwable getFailure()
Answer the failures

Returns:
Throwable instances

getError

public java.lang.Throwable getError()
Answer the errors

Returns:
Throwable instances

toString

public java.lang.String toString()