From f6a8b9a6faad63e8e1f86f5936d34040301dee3c Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Sun, 31 Mar 2019 10:20:20 +0200 Subject: [PATCH] Polish eb65c954ce54409322469bef18bb1f84fd88d28d --- README.md | 1 + .../test/java/org/jeasy/rules/support/UnitRuleGroupTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6673f31..8f07284 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/easy-rules-support/src/test/java/org/jeasy/rules/support/UnitRuleGroupTest.java b/easy-rules-support/src/test/java/org/jeasy/rules/support/UnitRuleGroupTest.java index 9a92838..b45db20 100644 --- a/easy-rules-support/src/test/java/org/jeasy/rules/support/UnitRuleGroupTest.java +++ b/easy-rules-support/src/test/java/org/jeasy/rules/support/UnitRuleGroupTest.java @@ -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