Commit in GeomConverter/test/org/lcsim/geometry/subdetector on MAIN
PolyhedraEndcapCalorimeterTest.java+5-121.3 -> 1.4
remove duplicate test statement

GeomConverter/test/org/lcsim/geometry/subdetector
PolyhedraEndcapCalorimeterTest.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- PolyhedraEndcapCalorimeterTest.java	29 Feb 2008 01:09:08 -0000	1.3
+++ PolyhedraEndcapCalorimeterTest.java	24 Mar 2009 21:54:51 -0000	1.4
@@ -10,8 +10,10 @@
 import org.lcsim.util.test.TestUtil.TestOutputFile;
 
 /**
- *
- * @author jeremym
+ * This class tests whether the {@link org.lcsim.subdetector.PolyhedraEndcapCalorimeter}
+ * subdetector type loads without errors from a test compact description.
+ * 
+ * @author Jeremy McCormick <[log in to unmask]>
  */
 public class PolyhedraEndcapCalorimeterTest extends TestCase
 {
@@ -28,16 +30,7 @@
         GeometryReader reader = new GeometryReader();
         det = reader.read(in);
         
-        assertTrue( det.getSubdetectors().get("PolyhedraEndcapCalorimeterTest") != null );
-        
-        try
-        {
-            pbc = (PolyhedraEndcapCalorimeter) det.getSubdetectors().get("PolyhedraEndcapCalorimeterTest");
-        }
-        catch ( ClassCastException cce )
-        {
-            throw new RuntimeException("Failed cast to PolyhedraEndcapCalorimeter.");
-        }
+        assertTrue( det.getSubdetectors().get("PolyhedraEndcapCalorimeter") != null );
     }
     
     public static junit.framework.Test suite()
CVSspam 0.2.8