junit.extensions.jfunc
Class JFuncResult

java.lang.Object
  |
  +--junit.framework.TestResult
        |
        +--junit.extensions.jfunc.JFuncResult
All Implemented Interfaces:
AssertListener, junit.framework.TestListener

public class JFuncResult
extends junit.framework.TestResult
implements AssertListener

JFuncResult main function is to pass verbose assertions to the AssertListeners.

Another more experimental feature is it allows tests to run without a suite through a proxy mechanism. Since these tests are running "live", the result of the test can be passed back immediately, which is useful in cases where you might run test B only if test A passes, or other more complicated situations that come up during functional testing.

See Also:
AssertListener

Field Summary
static int ERRORED
           
static int FAILED
           
static int PASSED
           
static int UNDEF
           
 
Fields inherited from class junit.framework.TestResult
fErrors, fFailures, fListeners, fRunTests
 
Constructor Summary
JFuncResult()
           
 
Method Summary
 void addAssert(junit.framework.Test test, java.lang.String message, boolean condition)
          An assert happened.
 junit.framework.Test getTestProxy(junit.framework.Test test)
          Returns a proxy of the test that will actually be run when called.
 
Methods inherited from class junit.framework.TestResult
addError, addFailure, addListener, endTest, errorCount, errors, failureCount, failures, removeListener, run, runCount, runProtected, runTests, shouldStop, startTest, stop, testErrors, testFailures, wasSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface junit.framework.TestListener
addError, addFailure, endTest, startTest
 

Field Detail

UNDEF

public static final int UNDEF

PASSED

public static final int PASSED

FAILED

public static final int FAILED

ERRORED

public static final int ERRORED
Constructor Detail

JFuncResult

public JFuncResult()
Method Detail

addAssert

public void addAssert(junit.framework.Test test,
                      java.lang.String message,
                      boolean condition)
Description copied from interface: AssertListener
An assert happened.
Specified by:
addAssert in interface AssertListener

getTestProxy

public junit.framework.Test getTestProxy(junit.framework.Test test)
Returns a proxy of the test that will actually be run when called.