@Test public void testGetEmptyRuleMap() { HashMap<String, JSONObject> emptyHasmap = new HashMap<String, JSONObject>(); HashMap<String, JSONObject> result = instance.getAllRulesInfo(); logger.debug(String.format("testing ------- %s",result)); assertEquals(result, emptyHasmap); }
public HashMap<String, JSONObject> getAllRulesInfo() { return rulesInfo; }
TimeRulesStore { public HashMap<String, JSONObject> getAllRulesInfo() { return rulesInfo; } }
TimeRulesStore { public HashMap<String, JSONObject> getAllRulesInfo() { return rulesInfo; } private  TimeRulesStore(); }
TimeRulesStore { public HashMap<String, JSONObject> getAllRulesInfo() { return rulesInfo; } private  TimeRulesStore(); static TimeRulesStore getInstance(); void saveTimeRules(String body); HashMap<String, JSONObject> getAllRulesInfo(); JSONObject getRuleInfo(String ruleName); void removeTimeRule(String ruleName); void cleanAllRules(); }
TimeRulesStore { public HashMap<String, JSONObject> getAllRulesInfo() { return rulesInfo; } private  TimeRulesStore(); static TimeRulesStore getInstance(); void saveTimeRules(String body); HashMap<String, JSONObject> getAllRulesInfo(); JSONObject getRuleInfo(String ruleName); void removeTimeRule(String ruleName); void cleanAllRules();  }