public static RuleTagCacheObject createTestRuleTag(){
  RuleTagCacheObject cacheObject=new RuleTagCacheObject(new Long(130),"Junit_test_tag","Integer",DataTagConstants.MODE_TEST,"(#100000 = true)&(#100001 = true)[2],true[3]");
  cacheObject.setId(new Long(130));
  cacheObject.setName("Junit_test_rule_tag");
  cacheObject.setDescription("test rule description");
  cacheObject.setMode(DataTagConstants.MODE_TEST);
  cacheObject.setDataType("Integer");
  cacheObject.setLogged(false);
  cacheObject.setUnit("test unit m/sec");
  cacheObject.setDipAddress("testDIPaddress");
  cacheObject.setJapcAddress("testJAPCaddress");
  cacheObject.setValue(new Integer(1000));
  cacheObject.setValueDescription("test value description");
  cacheObject.setSimulated(false);
  cacheObject.setValueDictionary(new DataTagValueDictionary());
  cacheObject.setDataTagQuality(createValidQuality());
  cacheObject.setCacheTimestamp(new Timestamp(System.currentTimeMillis()));
  cacheObject.setRuleIdsString("");
  return cacheObject;
}

public static RuleTagCacheObject createTestRuleTag ( ) { RuleTagCacheObject cacheObject = new RuleTagCacheObject ( new Long ( 130 ) , "Junit_test_tag" , "Integer" , DataTagConstants . MODE_TEST , "(#100000 = true)&(#100001 = true)[2],true[3]" ) ; cacheObject . setId ( new Long ( 130 ) ) ; cacheObject . setName ( "Junit_test_rule_tag" ) ; cacheObject . setDescription ( "test rule description" ) ; cacheObject . setMode ( DataTagConstants . MODE_TEST ) ; cacheObject . setDataType ( "Integer" ) ; cacheObject . setLogged ( false ) ; cacheObject . setUnit ( "test unit m/sec" ) ; cacheObject . setDipAddress ( "testDIPaddress" ) ; cacheObject . setJapcAddress ( "testJAPCaddress" ) ; cacheObject . setValue ( new Integer ( 1000 ) ) ; cacheObject . setValueDescription ( "test value description" ) ; cacheObject . setSimulated ( false ) ; cacheObject . setValueDictionary ( new DataTagValueDictionary ( ) ) ; cacheObject . setDataTagQuality ( createValidQuality ( ) ) ; cacheObject . setCacheTimestamp ( new Timestamp ( System . currentTimeMillis ( ) ) ) ; cacheObject . setRuleIdsString ( "" ) ; return cacheObject ; }
returns a test rule tag object
