View Javadoc

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