net.thefrontside.crosscheck
Interface TestResult


public interface TestResult

Represents the result of a single Crosscheck test case.


Method Summary
 java.lang.String getMessage()
          Retrieves the message associated with this test case.
 java.lang.String getName()
          The name of this test.
 java.lang.String[] getStack()
          Gets the stack of the javascript interpreter starting at the line where the error or failure occured.
 boolean isOk()
          Indicates whether or not this test case passed or failed.
 

Method Detail

isOk

public boolean isOk()
Indicates whether or not this test case passed or failed.

Returns:
true if the test case passed.

getName

public java.lang.String getName()
The name of this test. This is javascript name of the test function. So, if you're javascript testcase looked like:
  test_that_one_is_equal_to_one: function() {
  	assertEquals(1, 1)
  }
 
getName() would return "test_that_one_is_equal_to_one"

Returns:
the name of the test case which this TestResult summarizes.

getMessage

public java.lang.String getMessage()
Retrieves the message associated with this test case. If the test failed, it will be the message associated with the assertion failure. If it was an error, it will be the message of the javascript exception. If the test case was successful, then it will return null.


getStack

public java.lang.String[] getStack()
Gets the stack of the javascript interpreter starting at the line where the error or failure occured. If this TestResult was successful, then the stack will have no elements.

Returns:
an array containing the stack of the javascript interpreter.

The inevitable future of AJAX.

© 2006 The Frontside Software, Inc.