org.jtiger.framework
Interface TestResult

All Superinterfaces:
Serializable

public interface TestResult
extends Serializable

Represents the result after execution of a test case method.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
Author:
Tony Morris
See Also:
Test

Method Summary
 ReadOnlyArray<String> getCategories()
          Returns all categories that the test case method is in.
 Long getElapsedTime()
          Returns the amount of time, in milliseconds, that the test method took for execution.
 Throwable getException()
          Returns the exception associated with this test result.
 Class<?> getFixtureClass()
          Returns the test fixture class.
 String getFixtureDescription()
          Returns the description of the test fixture that contains the test case method.
 String getFixtureName()
          Returns the name of the test fixture that contains the test case method.
 String getMessage()
          Returns the message associated with the test result.
 String getTestDescription()
          Returns the description of the test case method.
 String getTestMethodName()
          Returns the test case method name.
 ReadOnlyArray<Class<?>> getTestMethodParameterTypes()
          Returns the test case method parameter types.
 String getTestName()
          Returns the name of the test case method.
 TestResultType getTestResultType()
          Returns the type of the result.
 

Method Detail

getTestResultType

TestResultType getTestResultType()
Returns the type of the result. This is never null.

Returns:
The type of the result. This is never null.

getMessage

String getMessage()
Returns the message associated with the test result. This may be null.

Returns:
The message associated with the test result. This may be null.

getException

Throwable getException()
Returns the exception associated with this test result. This may be null.

Returns:
The exception associated with this test result. This may be null.

getElapsedTime

Long getElapsedTime()
Returns the amount of time, in milliseconds, that the test method took for execution. This may be null.

Returns:
The amount of time, in milliseconds, that the test method took for execution. This may be null.

getCategories

ReadOnlyArray<String> getCategories()
Returns all categories that the test case method is in. This is never null.

Returns:
All categories that the test case method is in. This is never null.

getTestName

String getTestName()
Returns the name of the test case method. If the test case method has not been given an explicit name, the method name is returned. This is never null.

Returns:
The name of the test case method. If the test case method has not been given an explicit name, the method name is returned. This is never null.
See Also:
Test.value()

getTestDescription

String getTestDescription()
Returns the description of the test case method. This may be null.

Returns:
The description of the test case method. This may be null.
See Also:
Test.description()

getTestMethodName

String getTestMethodName()
Returns the test case method name. This is never null.

Returns:
The test case method name. This is never null.

getTestMethodParameterTypes

ReadOnlyArray<Class<?>> getTestMethodParameterTypes()
Returns the test case method parameter types.

Returns:
The test case method parameter types.
Since:
2.1

getFixtureName

String getFixtureName()
Returns the name of the test fixture that contains the test case method. If the test fixture has not been given an explicit name, the class name is returned. This is never null.

Returns:
The name of the test fixture that contains the test case method. If the test fixture has not been given an explicit name, the class name is returned. This is never null.
See Also:
Fixture.value()

getFixtureDescription

String getFixtureDescription()
Returns the description of the test fixture that contains the test case method. This may be null.

Returns:
The description of the test fixture that contains the test case method. This may be null.
See Also:
Fixture.description()

getFixtureClass

Class<?> getFixtureClass()
Returns the test fixture class. This is never null.

Returns:
The test fixture class. This is never null.