View Javadoc

1   /*
2    * MaterialManagerTest.java
3    *
4    * Created on July 1, 2005, 2:25 PM
5    */
6   
7   package org.lcsim.material;
8   
9   import junit.framework.Test;
10  import junit.framework.TestCase;
11  import junit.framework.TestSuite;
12  
13  /**
14   *
15   * @author jeremym
16   */
17  public class MaterialManagerTest extends TestCase
18  {
19      MaterialManager mgr;
20      
21      /** Creates a new instance of MaterialManagerTest */
22      public MaterialManagerTest()
23      {}    
24      
25      public MaterialManagerTest(String testName)
26      {
27          super(testName);
28      }
29      
30      public static TestSuite suite()
31      {
32          return new TestSuite(MaterialManagerTest.class);
33      }
34      
35      protected void setUp()
36      {}    
37      
38      public void test_materialsBasic()
39      {
40          MaterialManager mgr = MaterialManager.instance();
41          //mgr.print();
42      }
43      /*
44      String materialLookup[] = {"Tungsten", "Lead", "Silicon", "Iron"}; 
45      public void testRadLen()
46      {        
47          MaterialManager mgr = MaterialManager.instance();
48          System.out.println("Material radLen, radLenDens");
49          for (String materialName : materialLookup)
50          {
51              Material material = mgr.getMaterial(materialName);
52              System.out.println(materialName + " " 
53                      + material.getRadiationLength() + ", " 
54                      + material.getRadiationLengthWithDensity());
55          }
56      }
57      */
58  }