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 PolyhedraBarrelCalorimeter2ConverterTest extends TestCase
18  {    
19      public void testPolyhedraBarrelCalorimeterConverter() throws Exception
20      {
21          InputStream in = 
22                  PolyhedraBarrelCalorimeterConverterTest.class.
23                  getResourceAsStream("/org/lcsim/geometry/subdetector/PolyhedraBarrelCalorimeter2Test.xml");
24          OutputStream out = new BufferedOutputStream(new FileOutputStream(new TestOutputFile("PolyhedraBarrelCalorimeter2Test.lcdd")));
25          new Main().convert("PolyhedraBarrelCalorimeter2Test",in,out);
26      }
27  }