SlicDiagnostics/test/org/lcsim/slic/diagnostics
diff -N RunnerTest.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ RunnerTest.java 1 Aug 2005 06:35:26 -0000 1.1
@@ -0,0 +1,51 @@
+/*
+ * RunnerTest.java
+ *
+ * Created on July 31, 2005, 10:25 PM
+ *
+ */
+
+package org.lcsim.slic.diagnostics;
+
+import java.io.File;
+import java.net.URL;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import org.lcsim.util.cache.FileCache;
+
+/**
+ *
+ * @author jeremym
+ */
+public class RunnerTest extends TestCase
+{
+ /** Creates a new instance of RunnerTest */
+ public RunnerTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return new TestSuite(RunnerTest.class);
+ }
+
+// protected void setUp() throws Exception
+// {
+//
+// }
+
+ public void testSingleFile() throws Exception
+ {
+ FileCache cache = new FileCache();
+ File file = cache.getCachedFile(
+ new URL("http://www.lcsim.org/test/lcio/ZPoleUDS_50evt_SLIC_v1r9p1_sidmay05.slcio")
+ );
+
+ Runner runner = new Runner();
+ runner.addFile(file.toString());
+ runner.run();
+ runner = null;
+ }
+}
\ No newline at end of file