コード例 #1
0
 private void assertRulesEqual(Rule origRule, Rule parsedRule) {
   assertEquals("The rule names do not match.", origRule.getName(), parsedRule.getName());
   assertEquals(
       "The descriptions do not match.", origRule.getDescription(), parsedRule.getDescription());
   assertEquals(
       "The membership rules do not match.",
       origRule.getMembershipRule(),
       parsedRule.getMembershipRule());
 }
コード例 #2
0
 private JSONObject createRuleFromList(Rule rule) throws JSONException {
   return GroupsAndRulesJSONUtil.createRule(
       rule.getName(), rule.getDescription(), rule.getMembershipRule());
 }