View Javadoc

1   package org.lcsim.geometry.compact.converter.lcdd;
2   
3   import java.io.FileOutputStream;
4   import java.io.InputStream;
5   
6   import junit.framework.TestCase;
7   import junit.framework.TestSuite;
8   
9   import org.lcsim.util.test.TestUtil.TestOutputFile;
10  
11  /**
12   *
13   * @author jeremym
14   */
15  public class PolyhedraEndcapCalorimeterConverterTest extends TestCase
16  {    
17      public PolyhedraEndcapCalorimeterConverterTest()
18      {}
19      
20      public static TestSuite suite()
21      {
22          return new TestSuite(PolyhedraEndcapCalorimeterConverterTest.class);
23      }
24      
25      public void test_PolyhedraEndcapCalorimeterConverter() throws Exception
26      {
27          InputStream in = 
28                  PolyhedraEndcapCalorimeterConverterTest.class.
29                  getResourceAsStream(
30                  "/org/lcsim/geometry/subdetector/PolyhedraEndcapCalorimeterTest.xml");
31          new Main().convert("PolyhedraEndcapCalorimeterTest",in,new FileOutputStream(new TestOutputFile("PolyhedraEndcapCalorimeterTest.lcdd")));
32      }
33  }