1 /* 2 * StatusInt_Test.java 3 * 4 * Created on July 24, 2007, 11:27 AM 5 * 6 * $Id: StatusInt_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 StatusInt_Test extends TestCase 18 { 19 private boolean debug; 20 /** Creates a new instance of StatusInt_Test */ 21 public void testStatusInt() 22 { 23 String component = "StatusInt"; 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 int value = 12; 34 int status = 137; 35 36 StatusInt sv = new StatusInt(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 if(debug) System.out.println( ok_prefix 45 + "-------------------- All tests passed. -------------------"); 46 //******************************************* 47 } 48 49 }