org.apache.jackrabbit.test
Class JCRTestResult

java.lang.Object
  extended byjunit.framework.TestResult
      extended byorg.apache.jackrabbit.test.JCRTestResult

public class JCRTestResult
extends junit.framework.TestResult

Extends the standard JUnit TestResult class. This class ignores test errors that originated in throwing a NotExecutableException.


Field Summary
 
Fields inherited from class junit.framework.TestResult
fErrors, fFailures, fListeners, fRunTests
 
Constructor Summary
JCRTestResult(junit.framework.TestResult orig, LogPrintWriter log)
          Creates a new JCRTestResult that delegates to orig.
 
Method Summary
 void addError(junit.framework.Test test, java.lang.Throwable throwable)
          Only add an error if throwable is not of type NotExecutableException.
 void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError assertionFailedError)
           
 void addListener(junit.framework.TestListener testListener)
           
 void endTest(junit.framework.Test test)
           
 int errorCount()
           
 java.util.Enumeration errors()
           
 int failureCount()
           
 java.util.Enumeration failures()
           
 void removeListener(junit.framework.TestListener testListener)
           
 int runCount()
           
 boolean shouldStop()
           
 void startTest(junit.framework.Test test)
           
 void stop()
           
 boolean wasSuccessful()
           
 
Methods inherited from class junit.framework.TestResult
run, runProtected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRTestResult

public JCRTestResult(junit.framework.TestResult orig,
                     LogPrintWriter log)
Creates a new JCRTestResult that delegates to orig.

Parameters:
orig - the original TestResult this result wraps.
log - the logger
Method Detail

addError

public void addError(junit.framework.Test test,
                     java.lang.Throwable throwable)
Only add an error if throwable is not of type NotExecutableException.

Parameters:
test - the test.
throwable - the exception thrown by the test.

addFailure

public void addFailure(junit.framework.Test test,
                       junit.framework.AssertionFailedError assertionFailedError)

addListener

public void addListener(junit.framework.TestListener testListener)

removeListener

public void removeListener(junit.framework.TestListener testListener)

endTest

public void endTest(junit.framework.Test test)

errorCount

public int errorCount()

errors

public java.util.Enumeration errors()

failureCount

public int failureCount()

failures

public java.util.Enumeration failures()

runCount

public int runCount()

shouldStop

public boolean shouldStop()

startTest

public void startTest(junit.framework.Test test)

stop

public void stop()

wasSuccessful

public boolean wasSuccessful()


Copyright © -2005 . All Rights Reserved.