public static ControlTagCacheObject createTestControlTag(){
  ControlTagCacheObject cacheObject=new ControlTagCacheObject(new Long(1001),"Junit_test_tag","Float",DataTagConstants.MODE_TEST);
  cacheObject.setId(new Long(1001));
  cacheObject.setName("Junit_test_tag");
  cacheObject.setDescription("test description");
  cacheObject.setMode(DataTagConstants.MODE_TEST);
  cacheObject.setDataType("Float");
  cacheObject.setTopic("controltag-publication-topic");
  cacheObject.setLogged(false);
  cacheObject.setUnit("test unit m/sec");
  cacheObject.setDipAddress("testDIPaddress");
  cacheObject.setJapcAddress("testJAPCaddress");
  cacheObject.setValue(new Float(1000));
  cacheObject.setValueDescription("test value description");
  cacheObject.setSimulated(false);
  cacheObject.setEquipmentId(new Long(150));
  cacheObject.setMinValue(new Float(100));
  cacheObject.setMaxValue(new Float(2000));
  cacheObject.setValueDictionary(new DataTagValueDictionary());
  cacheObject.setAddress(new DataTagAddress());
  cacheObject.setDataTagQuality(createValidQuality());
  cacheObject.setCacheTimestamp(new Timestamp(System.currentTimeMillis()));
  cacheObject.setDaqTimestamp(new Timestamp(System.currentTimeMillis()));
  cacheObject.setSourceTimestamp(new Timestamp(System.currentTimeMillis()));
  cacheObject.setRuleIdsString("");
  return cacheObject;
}

public static ControlTagCacheObject createTestControlTag ( ) { ControlTagCacheObject cacheObject = new ControlTagCacheObject ( new Long ( 1001 ) , "Junit_test_tag" , "Float" , DataTagConstants . MODE_TEST ) ; cacheObject . setId ( new Long ( 1001 ) ) ; cacheObject . setName ( "Junit_test_tag" ) ; cacheObject . setDescription ( "test description" ) ; cacheObject . setMode ( DataTagConstants . MODE_TEST ) ; cacheObject . setDataType ( "Float" ) ; cacheObject . setTopic ( "controltag-publication-topic" ) ; cacheObject . setLogged ( false ) ; cacheObject . setUnit ( "test unit m/sec" ) ; cacheObject . setDipAddress ( "testDIPaddress" ) ; cacheObject . setJapcAddress ( "testJAPCaddress" ) ; cacheObject . setValue ( new Float ( 1000 ) ) ; cacheObject . setValueDescription ( "test value description" ) ; cacheObject . setSimulated ( false ) ; cacheObject . setEquipmentId ( new Long ( 150 ) ) ; cacheObject . setMinValue ( new Float ( 100 ) ) ; cacheObject . setMaxValue ( new Float ( 2000 ) ) ; cacheObject . setValueDictionary ( new DataTagValueDictionary ( ) ) ; cacheObject . setAddress ( new DataTagAddress ( ) ) ; cacheObject . setDataTagQuality ( createValidQuality ( ) ) ; cacheObject . setCacheTimestamp ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; cacheObject . setDaqTimestamp ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; cacheObject . setSourceTimestamp ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; cacheObject . setRuleIdsString ( "" ) ; return cacheObject ; }
constructs a test controltag .
