Jetif v1.8.0

jetif
Interface CaseSpec


public interface CaseSpec

A CaseSpec is the specification of a test case, consists of case name and method specifications. The framework will run the test case according this specification. A CaseSpec should contains at least one test method.

Author:
Vicky Wang

Method Summary
 String[] getDependencies()
          Returns all cases that depended by this test case.
 MethodSpec[] getMethods()
          Returns all test method specs of this case spec.
 String getName()
          Get the name of the test case.
 String getUID()
          Get the uid (User defined ID) of the test case.
 

Method Detail

getName

public String getName()
Get the name of the test case. The test case name will be included in the test result and be passed to the test listeners.

Returns:
the test case name.

getUID

public String getUID()
Get the uid (User defined ID) of the test case. May be null if not been defined.

Returns:
the uid defined in the spec.

getMethods

public MethodSpec[] getMethods()
Returns all test method specs of this case spec. A test case should have one or more test methods.

Returns:
the array of test method specs, can't be null or empty array.

getDependencies

public String[] getDependencies()
Returns all cases that depended by this test case. null or empty array means no dependency.

Returns:
the name of dependencies.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.