Package dalvik.annotation
Enum TestLevel
- All Implemented Interfaces:
Serializable,Comparable<TestLevel>
public enum TestLevel extends Enum<TestLevel>
Defines an enumeration of possible states a test case can be in.
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONALIndicates that a test method provides additional testing for an API method for which there already exists oneCOMPLETEor a set ofPARTIAL_COMPLETEtests.COMPLETEIndicates that a test method completely tests its target API method.NOT_FEASIBLEIndicates that it is very hard or impossible to test an API method.NOT_NECESSARYIndicates that there is nothing to test in an API method, for example if the specification states that a method does nothing.PARTIALIndicates that a test method partially tests its target API method.PARTIAL_COMPLETEIndicates that a test method partially tests its target API method and that together with all otherPARTIAL_COMPLETEtests for the same method it is sufficient.PARTIAL_OKJust for compatibility purposes, will be removed later.SUFFICIENTIndicates that a test method is known to not completely test an API method but the missing test steps are too complex and costly to implement.TODOIndicates that the tests is either insufficient or wrong. -
Method Summary
-
Enum Constant Details
-
COMPLETE
Indicates that a test method completely tests its target API method. -
PARTIAL_COMPLETE
Indicates that a test method partially tests its target API method and that together with all otherPARTIAL_COMPLETEtests for the same method it is sufficient. -
PARTIAL_OK
Just for compatibility purposes, will be removed later. -
PARTIAL
Indicates that a test method partially tests its target API method. It needs a second review phase to find out if the sum of all partial tests is sufficient for completely testing the target API method. If yes, the level has to be changed toPARTIAL_COMPLETE. -
SUFFICIENT
Indicates that a test method is known to not completely test an API method but the missing test steps are too complex and costly to implement. This level is positioned somewhere betweenPARTIALandCOMPLETE. -
ADDITIONAL
Indicates that a test method provides additional testing for an API method for which there already exists oneCOMPLETEor a set ofPARTIAL_COMPLETEtests. This level may also be used for test methods that test a concept which can not be directly attributed to the specification of an API method or class. -
NOT_NECESSARY
Indicates that there is nothing to test in an API method, for example if the specification states that a method does nothing. -
NOT_FEASIBLE
Indicates that it is very hard or impossible to test an API method. -
TODO
Indicates that the tests is either insufficient or wrong. Something needs to be done about it.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-