KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > cli > framework > AllTest


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.cli.framework;
25
26
27 import junit.textui.TestRunner;
28 import junit.framework.TestResult;
29 import junit.framework.TestSuite;
30 import junit.framework.Test;
31 /**
32  *
33  * @author <a HREF="mailto:toby.h.ferguson@sun.com">Toby H Ferguson</a>
34  * @version $Revision: 1.4 $
35  */

36
37 public class AllTest
38 {
39
40     private static final Class JavaDoc []classes = {
41         CLILoggerTest.class,
42         CommandExceptionTest.class,
43         CommandFactoryTest.class,
44         CommandLineParserTest.class,
45         CommandTest.class,
46         CommandValidatorTest.class,
47         CommandValidationExceptionTest.class,
48         GlobalsManagerTest.class,
49         InputsAndOutputsTest.class,
50         LocalStringsManagerTest.class,
51         LocalStringsManagerFactoryTest.class,
52         NullOutputTest.class,
53         OutputTest.class,
54         UserInputTest.class,
55         UserOutputImplTest.class,
56         ValidCommandTest.class,
57         ValidCommandsListTest.class,
58         ValidOptionTest.class,
59         ValidPropertyTest.class
60     };
61     
62     public static Test suite(){
63         TestSuite suite = new TestSuite("cli framework tests");
64         for (int i = 0; i < classes.length; i++){
65             suite.addTest(new TestSuite(classes[i]));
66         }
67         return suite;
68     }
69     
70         
71     public static void main(String JavaDoc args[]) {
72         final TestRunner runner= new TestRunner();
73         final TestResult result = runner.doRun(AllTest.suite(), false);
74         System.exit(result.errorCount() + result.failureCount());
75     }
76 // Local Variables:
77
// jde-ant-args: "-emacs -Dcover.class=All jcov.static jcov.report"
78
// End:
79
}
80
Popular Tags