1 /* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package dalvik.annotation; 18 19 /** 20 * Defines an enumeration of possible states a test case can be in. 21 * 22 * @hide 23 */ 24 public enum TestLevel { 25 26 /** 27 * Indicates that a test method completely tests its target API method. 28 */ 29 COMPLETE, 30 31 /** 32 * Indicates that a test method partially tests its target API method and 33 * that together with all other {@code PARTIAL_COMPLETE} tests for the same 34 * method it is sufficient. 35 */ 36 PARTIAL_COMPLETE, 37 38 /** 39 * Just for compatibility purposes, will be removed later. 40 */ 41 PARTIAL_OK, 42 43 /** 44 * Indicates that a test method partially tests its target API method. It 45 * needs a second review phase to find out if the sum of all partial tests 46 * is sufficient for completely testing the target API method. If yes, the 47 * level has to be changed to {@code PARTIAL_COMPLETE}. 48 */ 49 PARTIAL, 50 51 /** 52 * Indicates that a test method is known to not completely test an API 53 * method but the missing test steps are too complex and costly to 54 * implement. This level is positioned somewhere between {@code PARTIAL} 55 * and {@code COMPLETE}. 56 */ 57 SUFFICIENT, 58 59 /** 60 * Indicates that a test method provides additional testing for an API 61 * method for which there already exists one {@code COMPLETE} or a set of 62 * {@code PARTIAL_COMPLETE} tests. This level may also be used for test 63 * methods that test a concept which can not be directly attributed to 64 * the specification of an API method or class. 65 */ 66 ADDITIONAL, 67 68 /** 69 * Indicates that there is nothing to test in an API method, for example if 70 * the specification states that a method does nothing. 71 */ 72 NOT_NECESSARY, 73 74 /** 75 * Indicates that it is very hard or impossible to test an API method. 76 */ 77 NOT_FEASIBLE, 78 79 /** 80 * Indicates that the tests is either insufficient or wrong. Something needs 81 * to be done about it. 82 */ 83 TODO, 84 85 } 86