org.jtiger.framework
Annotation Type Test


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
public @interface Test

Used to annotate a test case method in a test fixture class. This indicates to the framework that the method should be executed during test execution. A test case method should take no arguments.

  • If the test fixture cannot be setup, the test case results in failure (setup).
  • If the test fixture cannot be torn down, regardless of its success or failure during execution, the test case results in failure (tear down).
  • If the test case method throws an exception that is wasn't expecting, the test case results in failure
  • .
  • If the test case method throws an exception that it was expecting, the test case results in success
  • .
  • If the test case method does not throw an exception that is was expecting, the test case results in failure.
  • If the test case method cannot be executed because it does not satisfy the criteria for being a test case method, the test case results in ignored (cannot invoke).
  • If the test case method is not to be executed because it is annotated that way, the test case results in ignored (annotated).
  • Version:
    2.1
    Build Number 0376
    Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
    Author:
    Tony Morris

    Optional Element Summary
     String description
              Returns a description for the test case method, which is typically used in reporting.
     String value
              Returns a name for the test case method, which is typically used in reporting.
     

    value

    public abstract String value
    Returns a name for the test case method, which is typically used in reporting.

    Returns:
    A name for the test case method, which is typically used in reporting.
    Default:
    ""

    description

    public abstract String description
    Returns a description for the test case method, which is typically used in reporting.

    Returns:
    A description for the test case method, which is typically used in reporting.
    Default:
    ""