1 package org.lcsim.geometry.compact.converter.lcdd;
2
3 import java.io.File;
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
16
17 public class EcalBarrel_ConverterTest extends TestCase
18 {
19 public static TestSuite suite()
20 {
21 return new TestSuite(EcalBarrel_ConverterTest.class);
22 }
23
24 public void testEcalBarrel_Converter() throws Exception
25 {
26 InputStream in = EcalBarrel_ConverterTest.class.getResourceAsStream("/org/lcsim/geometry/subdetector/EcalBarrelTest.xml");
27 File file = new TestOutputFile("EcalBarrel_ConverterTest.lcdd");
28 OutputStream out = new FileOutputStream(file);
29 new Main().convert("EcalBarrel_ConverterTest",in,out);
30 }
31 }