contextHolder.context.getBean("ruleSet.beanRules"),
contextHolder.context.getBean("ruleSet.beanRules"));
}
public void testBeanRules() throws Exception {
RuleSet ruleSet = (RuleSet) contextHolder.context.getBean("ruleSet.beanRules");
assertNotNull(ruleSet);
assertEquals("ruleSet.beanRules.NAME", ruleSet.getName());
assertEquals(2, ruleSet.getRules().length);
Rule childRule = ruleSet.getRule("childRule");
assertNotNull(childRule);
assertEquals(10, childRule.getSalience());
assertTrue(childRule.isNoLoop());
assertEquals("childRule documentation", childRule.getDocumentation());
Rule adultRule = ruleSet.getRule("adultRule-overrideBeanName");
assertNotNull(adultRule);
}