1 22 package org.jboss.test.jmx.serialization; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 import java.io.File ; 28 import java.net.URL ; 29 import java.net.URLClassLoader ; 30 31 36 37 public class SerializationSUITE extends TestSuite 38 { 39 40 public static ClassLoader jmxri; 41 public static ClassLoader jbossmx; 42 public static int form = 11; 44 public static void main(String [] args) 45 { 46 junit.textui.TestRunner.run(suite()); 47 } 48 49 public static Test suite() 50 { 51 TestSuite suite = new TestSuite("All Serialization Tests"); 52 53 try 54 { 55 File riLocation = new File (System.getProperty("jboss.test.location.jmxri")); 56 jmxri = new URLClassLoader (new URL [] {riLocation.toURL()}, 57 SerializationSUITE.class.getClassLoader()); 58 File jbossmxLocation = new File (System.getProperty("jboss.test.location.jbossmx")); 59 jbossmx = new URLClassLoader (new URL [] {jbossmxLocation.toURL()}, 60 SerializationSUITE.class.getClassLoader()); 61 62 String prop = System.getProperty("jmx.serial.form"); 63 if (prop != null && prop.equals("1.0")) 64 form = 10; System.err.println("Serialization Tests: jmx.serial.form=" + prop); 66 67 suite.addTest(new TestSuite(SerializeTestCase.class)); 68 } 69 catch (Exception e) 70 { 71 e.printStackTrace(); 72 throw new RuntimeException (e.toString()); 73 } 74 75 return suite; 76 } 77 } 78 | Popular Tags |