pull/201/head
Mahmoud Ben Hassine 6 years ago
parent eb65c954ce
commit f6a8b9a6fa

@ -158,6 +158,7 @@ For any further question, you can use the [Gitter](https://gitter.im/j-easy/easy
* [WayneCui](https://github.com/WayneCui)
* [sanmibuh](https://github.com/sanmibuh)
* [shivmitra](https://github.com/shivmitra)
* [zhhaojie](https://github.com/zhhaojie)
Thank you all for your contributions!

@ -92,13 +92,13 @@ public class UnitRuleGroupTest {
@Test
public void compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse() throws Exception {
// Given
when(rule2.evaluate(facts)).thenReturn(false);
unitRuleGroup = new UnitRuleGroup();
unitRuleGroup.addRule(rule1);
unitRuleGroup.addRule(rule2);
rules.register(unitRuleGroup);
// When
when(rule2.evaluate(facts)).thenReturn(false);
rulesEngine.fire(rules, facts);
// Then

Loading…
Cancel
Save