01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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: package org.kuali.test.suite;
17:
18: import junit.framework.Test;
19: import junit.framework.TestSuite;
20:
21: /**
22: * A set of tests that have repeatedly revealed bugs in production code or configuration. Their limited number allows them to be run
23: * more frequently than all the tests.
24: * <p>
25: * This is the suite of all test classes or methods listing this class in a {@link AnnotationTestSuite} annotation. IDEs or Ant can
26: * run this as JUnit tests. To see the members of this suite, e.g., for a usage example, do a usage search on this .class (or run
27: * this suite in JUnit).
28: */
29: public class PreCommitSuite extends AnnotationTestSuite.Superclass {
30: public static TestSuite suite() throws Exception {
31: return new PreCommitSuite().getSuite();
32: }
33:
34: /**
35: * This nested class is the suite of all test methods not in the enclosing suite class. IDEs or Ant can run this nested class as
36: * JUnit tests.
37: */
38: public static class Not {
39: public static TestSuite suite() throws Exception {
40: return new PreCommitSuite().getNegativeSuite();
41: }
42: }
43: }
|