org.jtiger.framework
Enum TestResultType

java.lang.Object
  extended by java.lang.Enum<TestResultType>
      extended by org.jtiger.framework.TestResultType
All Implemented Interfaces:
Serializable, Comparable<TestResultType>

public enum TestResultType
extends Enum<TestResultType>

An enumeration of the possible result types of a test case execution.

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

Enum Constant Summary
FAILURE
          Indicates that the test case execution resulted in failure.
FAILURE_SETUP
          Indicates that the test case execution resulted in failure because the test fixture that contains it could not be setup.
FAILURE_TEARDOWN
          Indicates that the test case execution resulted in failure because the test fixture that contains it could not be torn down.
IGNORED_ANNOTATED
          Indicates that the test case execution resulted in being ignored because it was annotated that way.
IGNORED_CANNOT_INVOKE
          Indicates that the test case execution resulted in being ignored because it does not satisfy the criteria for a test case method.
SUCCESS
          Indicates that the test case execution resulted in success.
 
Method Summary
static TestResultType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TestResultType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final TestResultType SUCCESS
Indicates that the test case execution resulted in success.


IGNORED_ANNOTATED

public static final TestResultType IGNORED_ANNOTATED
Indicates that the test case execution resulted in being ignored because it was annotated that way.

See Also:
Ignore

IGNORED_CANNOT_INVOKE

public static final TestResultType IGNORED_CANNOT_INVOKE
Indicates that the test case execution resulted in being ignored because it does not satisfy the criteria for a test case method.

See Also:
Test

FAILURE_SETUP

public static final TestResultType FAILURE_SETUP
Indicates that the test case execution resulted in failure because the test fixture that contains it could not be setup.

See Also:
SetUp

FAILURE

public static final TestResultType FAILURE
Indicates that the test case execution resulted in failure.


FAILURE_TEARDOWN

public static final TestResultType FAILURE_TEARDOWN
Indicates that the test case execution resulted in failure because the test fixture that contains it could not be torn down.

See Also:
TearDown
Method Detail

values

public static final TestResultType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TestResultType c : TestResultType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TestResultType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name