1
2
3
4
5
6
7 package org.lcsim.geometry.compact.converter.lcdd;
8
9 import java.io.File;
10 import java.io.FileOutputStream;
11 import java.io.InputStream;
12 import java.io.OutputStream;
13
14 import org.lcsim.util.test.TestUtil.TestOutputFile;
15
16 import junit.framework.TestCase;
17 import junit.framework.TestSuite;
18
19
20
21
22
23 public class TestBeamCalorimeterConverterTest extends TestCase {
24
25 final String resource = "/org/lcsim/geometry/subdetector/TestBeamCalorimeterTest.xml";
26
27 public TestBeamCalorimeterConverterTest(String name) {
28 super(name);
29 }
30
31 public static TestSuite suite() {
32 return new TestSuite(TestBeamCalorimeterConverterTest.class);
33 }
34
35 public void testTestBeamCalorimeterConverter() throws Exception {
36 InputStream in = TestBeamCalorimeterConverterTest.class.getResourceAsStream(resource);
37 File file = new TestOutputFile("TestBeamCalorimeterTest.lcdd");
38 OutputStream out = new FileOutputStream(file);
39 new Main().convert("TestBeamCalorimeterConverterTest", in, out);
40 }
41 }