net.thefrontside.crosscheck
Interface CrosscheckListener


public interface CrosscheckListener

Receives notification of test execution as it happens.

See Also:
Runner.addSuiteListener(CrosscheckListener)

Method Summary
 void error(TestResult result)
          Invoked whenever the execution of a single test resulted in an error.
 void failure(TestResult result)
          Invoked whenever the execution of a single test resulted in a failure.
 void ok(TestResult result)
          Invoked whenever the execution of a single test suceeded without any errors or failures.
 void suiteFinished(TestSuite suite, Result result)
          Called when suite has finished executing.
 void suiteLoaded(TestSuite suite)
          Called whenever a suite is loaded, and ready to begin execution.
 

Method Detail

suiteLoaded

public void suiteLoaded(TestSuite suite)
Called whenever a suite is loaded, and ready to begin execution.

Parameters:
suite - the TestSuite that is about to be executed

suiteFinished

public void suiteFinished(TestSuite suite,
                          Result result)
Called when suite has finished executing.

Parameters:
suite - the TestSuite that has finished.
result - Result object indicating the result of suite execution.

error

public void error(TestResult result)
Invoked whenever the execution of a single test resulted in an error. An error result indicates that an unexpected exception was thrown during execution.

Parameters:
result - result of the test that was in error.

failure

public void failure(TestResult result)
Invoked whenever the execution of a single test resulted in a failure. A failure result indicates that the test case failed a specific assertion that was being checked in the test case.


ok

public void ok(TestResult result)
Invoked whenever the execution of a single test suceeded without any errors or failures.


The inevitable future of AJAX.

© 2006 The Frontside Software, Inc.