View Javadoc

1   /*
2    * StatusValue_Test.java
3    *
4    * Created on July 24, 2007, 11:26 AM
5    *
6    * $Id: StatusValue_Test.java,v 1.1.1.1 2010/04/08 20:38:00 jeremy Exp $
7    */
8   
9   package org.lcsim.recon.tracking.trfutil;
10  
11  import junit.framework.TestCase;
12  
13  /**
14   *
15   * @author Norman Graf
16   */
17  public class StatusValue_Test extends TestCase
18  {
19      private boolean debug;
20      /** Creates a new instance of StatusValue_Test */
21      public void testStatusValue()
22      {
23          String component = "StatusValue";
24          String ok_prefix = component+ " (I): ";
25          String error_prefix = component + " test (E): ";
26          
27          if(debug) System.out.println( ok_prefix
28                  + "---------- Testing component "+ component
29                  + ". ----------" );
30          //***********************************************
31          if(debug) System.out.println( ok_prefix+ "Test constructor");
32          
33          String value = "Value";
34          int status = 137;
35          
36          StatusValue sv = new StatusValue(status, value);
37          
38          if(debug) System.out.println(sv);
39          
40          Assert.assertTrue(sv.status() == status);
41          Assert.assertTrue(sv.value() == value);
42          
43          
44          //***********************************************
45          if(debug) System.out.println( ok_prefix
46                  + "----------------------- All tests passed. --------------");
47          //***********************************************
48      }
49      
50  }