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
10 import org.lcsim.util.test.TestUtil.TestOutputFile;
11
12
13
14
15
16 public class TubeSegmentTest extends TestCase
17 {
18 public void testCnv() throws Exception
19 {
20 InputStream in = TubeSegment.class.getResourceAsStream("/org/lcsim/geometry/subdetector/TubeSegmentTest.xml");
21 OutputStream out = new BufferedOutputStream(new FileOutputStream(new TestOutputFile("TubeSegmentTest.lcdd")));
22 new Main().convert("TubeSegmentTest",in,out);
23 }
24 }