1 23 24 29 30 package com.sun.enterprise.admin.dottedname; 31 32 import java.util.Iterator ; 33 import java.util.Arrays ; 34 35 import junit.extensions.ActiveTestSuite; 36 import junit.framework.TestSuite; 37 38 public class DottedNameTestsMain 39 { 40 41 public static final Class [] TEST_CLASSES = 42 { 43 com.sun.enterprise.admin.util.TokenizerTest.class, 44 DottedNameTest.class, 45 DottedNameFactoryTest.class, 46 DottedNameRegistryTest.class, 47 DottedNameGetSetMBeanImplTest.class, 48 }; 49 50 static void 51 testClass( Class theClass ) 52 { 53 System.out.println( "*** testing " + theClass.getName() + " ***"); 54 final TestSuite suite = new ActiveTestSuite( theClass ); 56 junit.textui.TestRunner.run( suite ); 57 } 58 59 public static void 60 main( String [] args ) 61 { 62 final Iterator iter = Arrays.asList( TEST_CLASSES ).iterator(); 63 64 while ( iter.hasNext() ) 65 { 66 final Class theClass = (Class )iter.next(); 67 68 testClass( theClass ); 69 } 70 } 71 } 72 73 74 | Popular Tags |