KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > magnet > test > TimeClientMagnetTest


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 /**
9  *
10  *
11  * @author Jean-Cedric Desrochers
12  *
13  * <dl>
14  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
15  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
16  * <a HREF="http://www.sapia-oss.org/license.html" target="sapia-license">license page</a> at the Sapia OSS web site</dd></dt>
17  * </dl>
18  */

19 public class TimeClientMagnetTest extends TestCase {
20
21   public static void main(String JavaDoc[] args) {
22     TestRunner.run(TimeClientMagnetTest.class);
23   }
24
25   public TimeClientMagnetTest(String JavaDoc aName) {
26     super(aName);
27   }
28
29   public void testSystemMagnet() throws Exception JavaDoc {
30     StringBuffer JavaDoc aName = new StringBuffer JavaDoc().
31           append(System.getProperty("user.dir")).
32           append(java.io.File.separator).append("etc").
33           append(java.io.File.separator).append("TimeClientMagnet.xml");
34
35     MagnetRunner.main(new String JavaDoc[] { "-debug", "-magnetfile", aName.toString(), "sapia"} );
36   }
37 }
Popular Tags