Commit in lcsim/test/org/lcsim/util/loop on MAIN
LCIODriverTest.java+10-11.6 -> 1.7
hack to reset materials between runs; will be fixed in future GeomConv update

lcsim/test/org/lcsim/util/loop
LCIODriverTest.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- LCIODriverTest.java	25 Mar 2009 00:44:27 -0000	1.6
+++ LCIODriverTest.java	11 Mar 2011 19:31:16 -0000	1.7
@@ -10,6 +10,7 @@
 import org.lcsim.event.EventHeader;
 import org.lcsim.event.MCParticle;
 import org.lcsim.event.SimCalorimeterHit;
+import org.lcsim.material.XMLMaterialManager;
 import org.lcsim.util.Driver;
 import org.lcsim.util.cache.FileCache;
 import org.lcsim.util.test.TestUtil.TestOutputFile;
@@ -18,9 +19,17 @@
  * Tests of the {@link org.lcsim.util.loop.LCIODriver}. 
  * @author jeremym
  */
+// FIXME Complains about multiple material definitions because material data is loaded already
+// and multiple detectors are built in this TestCase.
+// FIXME Separate into two TestCases: LCIODriverWriteOnlyCollTest and LCIODriverIgnoreCollTest.
 public class LCIODriverTest extends TestCase
 {
-	private final String writeCollection[] = {"MCParticle"};  
+	private final String writeCollection[] = {"MCParticle"};	
+	
+	public void setUp()
+	{
+	    XMLMaterialManager.reset();
+	}
 	
 	/**
 	 * Test that setting write only collections works correctly.
CVSspam 0.2.8