View Javadoc

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