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