KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derbyTesting > unitTests > harness > UnitTestConstants


1 /*
2
3    Derby - Class org.apache.derbyTesting.unitTests.harness.UnitTestConstants
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derbyTesting.unitTests.harness;
23
24 /**
25  * UnitTestConstants contains the constants for the
26  * unit tests to use when registering and running
27  * the tests.
28  *
29  */

30 public interface UnitTestConstants
31 {
32     /**
33       * the duration of a test can be from MICRO to FOREVER.
34       * <p>
35       * MICRO means the test is practically nothing more than
36       * the call; a simple field examination, for example.
37       */

38     static final int DURATION_MICRO = 0;
39     /**
40       * SHORT means the test is less than a second.
41       */

42     static final int DURATION_SHORT = 1;
43     /**
44       * MEDIUM means the test is less than 30 seconds.
45       */

46     static final int DURATION_MEDIUM = 2;
47     /**
48       * LONG means the test might take 1-5 minutes.
49       */

50     static final int DURATION_LONG = 3;
51     /**
52       * FOREVER means the test takes more than 5 minutes,
53       * or could loop forever if it fails.
54       */

55     static final int DURATION_FOREVER = 4;
56     
57     /**
58       * The TYPE of test says what sort of completeness it
59       * tests; its thoroughness.
60       * <p>
61       * Note the types given here are ordered from simple to
62       * comprehensive. Each category of tests includes
63       * tests in earlier, simpler catagories. Thus all SANITY
64       * tests are also BASIC tests.
65       */

66     
67     /**
68       * SANITY means the test is simply a check that
69       * the system is running. Little more than a consistency
70       * check would be done.
71       */

72     static final int TYPE_SANITY = 0;
73     /**
74       * BASIC means the test is a basic check that
75       * the system is working. A single, very common construct
76       * would be verified to be working.
77       */

78     static final int TYPE_BASIC = 1;
79     /**
80       * COMMON means the test verify that the most common
81       * cases of use of this object are working properly.
82       */

83     static final int TYPE_COMMON = 2;
84     /**
85       * COMPLETE means that the tests verify that the
86       * object is performing all expected functionality
87       * correctly.
88       */

89     static final int TYPE_COMPLETE = 3;
90     
91     
92 }// UnitTestConstants
93

94
Popular Tags