1 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 36 37 public class AllTest 38 { 39 40 private static final Class []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 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 } 80 | Popular Tags |