1 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 34 35 public class AllTest 36 { 37 38 private static final Class []classes = { 39 41 S1ASCommandTest.class, 42 BackupCommandsTest.class, 43 BaseLifeCycleCommandTest.class, 44 BaseTransformationRuleCommandTest.class, 45 CreateMBeanCommandTest.class, 46 CreateServiceCommandTest.class, 47 DeployCommandTest.class, 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 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 } 83 | Popular Tags |