Commit in hps-java/src/test/java/org/lcsim/hps/conditions on MAIN
ConditionsDriverTest.java+31added 1.1
add test

hps-java/src/test/java/org/lcsim/hps/conditions
ConditionsDriverTest.java added at 1.1
diff -N ConditionsDriverTest.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ConditionsDriverTest.java	18 Oct 2013 05:12:26 -0000	1.1
@@ -0,0 +1,31 @@
+package org.lcsim.hps.conditions;
+
+import java.io.File;
+import java.net.URL;
+
+import junit.framework.TestCase;
+
+import org.lcsim.util.cache.FileCache;
+import org.lcsim.util.loop.LCSimLoop;
+
+/**
+ * This class tests that {@link org.lcsim.hps.conditions.ConditionsDriver} works correctly.
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public class ConditionsDriverTest extends TestCase {
+    
+    private static final String TEST_FILE_URL = "http://www.lcsim.org/test/hps/conditions_test.slcio";
+    
+    public void test() throws Exception {
+        // Cache file locally from URL.
+        FileCache cache = new FileCache();
+        File testFile = cache.getCachedFile(new URL(TEST_FILE_URL));
+        
+        // Run the ConditionsDriver over test data containing multiple runs from the Test Run.
+        LCSimLoop loop = new LCSimLoop();
+        loop.setLCIORecordSource(testFile);
+        loop.add(new ConditionsDriver());        
+        loop.loop(-1, null);
+    }
+
+}
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1