KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > cli > commands > 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 package com.sun.enterprise.cli.commands;
24
25 import junit.textui.TestRunner;
26 import junit.framework.TestResult;
27 import junit.framework.TestSuite;
28 import junit.framework.Test;
29 /**
30  *
31  * @author <a HREF="mailto:toby.h.ferguson@sun.com">Toby H Ferguson</a>
32  * @version $Revision: 1.4 $
33  */

34
35 public class AllTest
36 {
37
38     private static final Class JavaDoc []classes = {
39         /*
40          */

41         S1ASCommandTest.class,
42         BackupCommandsTest.class,
43         BaseLifeCycleCommandTest.class,
44         BaseTransformationRuleCommandTest.class,
45         CreateMBeanCommandTest.class,
46         CreateServiceCommandTest.class,
47         DeployCommandTest.class, //53 in total
48
DottedNamesCommandTest.class,
49         ExportCommandTest.class,
50         GenerateJVMReportCommandTest.class,
51         GenerateReportCommandTest.class,
52         GetClientStubsCommandTest.class,
53         ListSubComponentsCommandTest.class,
54         NYICommandTest.class,
55         SSLCommandTest.class,
56         StartAppservCommandTest.class,
57         StopAppservCommandTest.class,
58         StartDomainCommandTest.class,
59         StopDomainCommandTest.class,
60         UnsetCommandTest.class,
61         VerifyDomainXmlCommandTest.class,
62         WebServiceRegistryCommandTest.class,
63     };
64     
65     public static Test suite(){
66         TestSuite suite = new TestSuite("CLI Commands tests");
67         for (int i = 0; i < classes.length; i++){
68             suite.addTest(new TestSuite(classes[i]));
69         }
70         return suite;
71     }
72     
73         
74     public static void main(String JavaDoc args[]) {
75         final TestRunner runner= new TestRunner();
76         final TestResult result = runner.doRun(AllTest.suite(), false);
77         System.exit(result.errorCount() + result.failureCount());
78     }
79 // Local Variables:
80
// jde-ant-args: "-emacs -Dcover.class=All jcov.static jcov.report"
81
// End:
82
}
83
Popular Tags