| 1 package org.sapia.magnet.test; 2 3 import junit.framework.TestCase; 4 import junit.textui.TestRunner; 5 import org.sapia.magnet.MagnetRunner; 6 7 8 19 public class AllInOneTimeServerMagnetTest extends TestCase { 20 21 public static void main(String [] args) { 22 TestRunner.run(AllInOneTimeServerMagnetTest.class); 23 } 24 25 public AllInOneTimeServerMagnetTest(String aName) { 26 super(aName); 27 } 28 29 public void testSystemMagnet() throws Exception { 30 StringBuffer aName = new StringBuffer (). 31 append(System.getProperty("user.dir")). 32 append(java.io.File.separator).append("etc"). 33 append(java.io.File.separator).append("AllInOneTimeServerMagnet.xml"); 34 35 MagnetRunner.main(new String [] { "-debug", "-magnetfile", aName.toString(), "colocated" } ); 36 } 38 } | Popular Tags |