Enum TestLevel

java.lang.Object
java.lang.Enum<TestLevel>
dalvik.annotation.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
    ADDITIONAL
    Indicates that a test method provides additional testing for an API method for which there already exists one COMPLETE or a set of PARTIAL_COMPLETE tests.
    COMPLETE
    Indicates that a test method completely tests its target API method.
    NOT_FEASIBLE
    Indicates that it is very hard or impossible to test an API method.
    NOT_NECESSARY
    Indicates that there is nothing to test in an API method, for example if the specification states that a method does nothing.
    PARTIAL
    Indicates that a test method partially tests its target API method.
    PARTIAL_COMPLETE
    Indicates that a test method partially tests its target API method and that together with all other PARTIAL_COMPLETE tests for the same method it is sufficient.
    PARTIAL_OK
    Just for compatibility purposes, will be removed later.
    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.
    TODO
    Indicates that the tests is either insufficient or wrong.
  • Method Summary

    Modifier and Type Method Description
    static TestLevel valueOf​(String name)
    Returns the enum constant of this type with the specified name.
    static TestLevel[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • COMPLETE

      public static final TestLevel COMPLETE
      Indicates that a test method completely tests its target API method.
    • PARTIAL_COMPLETE

      public static final TestLevel PARTIAL_COMPLETE
      Indicates that a test method partially tests its target API method and that together with all other PARTIAL_COMPLETE tests for the same method it is sufficient.
    • PARTIAL_OK

      public static final TestLevel PARTIAL_OK
      Just for compatibility purposes, will be removed later.
    • PARTIAL

      public static final TestLevel 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 to PARTIAL_COMPLETE.
    • SUFFICIENT

      public static final TestLevel 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 between PARTIAL and COMPLETE.
    • ADDITIONAL

      public static final TestLevel ADDITIONAL
      Indicates that a test method provides additional testing for an API method for which there already exists one COMPLETE or a set of PARTIAL_COMPLETE tests. 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

      public static final TestLevel 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

      public static final TestLevel NOT_FEASIBLE
      Indicates that it is very hard or impossible to test an API method.
    • TODO

      public static final TestLevel TODO
      Indicates that the tests is either insufficient or wrong. Something needs to be done about it.
  • Method Details

    • values

      public static TestLevel[] 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

      public static TestLevel 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
      NullPointerException - if the argument is null