View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.directory.server.core.integ;
20  
21  
22  /**
23   * A scope or level of testing.  There are four levels:
24   *
25   * <ul>
26   *   <li>
27   *     <b>system level</b>: the level external to the testing framework</li>
28   *   </li>
29   *   <li>
30   *     <b>suite level</b>: the level representing test suite scope</li>
31   *   </li>
32   *   <li>
33   *     <b>class level</b>: the level representing test class scope</li>
34   *   </li>
35   *   <li>
36   *     <b>method level</b>: the lowest level representing test method scope</li>
37   *   </li>
38   * </ul>
39   *
40   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
41   * @version $Rev$, $Date$
42   */
43  public enum Level
44  {
45      SUITE( 0, "test suite level" ),
46      CLASS( 1, "test class level" ),
47      SYSTEM( 2, "test system level" ),
48      METHOD( 3, "test method level" );
49  
50      public final int ordinal;
51      public final String description;
52  
53      public static final int SUITE_ORDINAL = 0;
54      public static final int CLASS_ORDINAL = 1;
55      public static final int SYSTEM_ORDINAL = 2;
56      public static final int METHOD_ORDINAL = 3;
57  
58  
59      Level( int ordinal, String description )
60      {
61          this.ordinal = ordinal;
62          this.description = description;
63      }
64  }