Annotation Type TestIndex


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface TestIndex
    This annotation is used to provide ordering to JUnit 4 tests. The test index should be ≥ to zero but do not need to be numbered consecutively or in increasing order.
    Author:
    Charles Rapp
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int index
      Returns the test order index.
    • Element Detail

      • index

        int index
        Returns the test order index.
        Returns:
        test order index.