-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24544fa
commit 366e342
Showing
14 changed files
with
6 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
/** | ||
* Abstraction for a rule that can be fired by the rules engine. | ||
* | ||
* Rules are registered in the rules engine registry and must have a <strong>unique</strong> name. | ||
* Rules are registered in a rule set of type <code>Rules</code> in which they must have a <strong>unique</strong> name. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
* | ||
* Rules are selected based on given facts and fired according to their natural order which is priority by default. | ||
* | ||
* The engine continuously select and fire rules until no more rules are applicable. | ||
* The engine continuously selects and fires rules until no more rules are applicable. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
import org.jeasy.rules.api.Facts; | ||
|
||
/** | ||
* Validate that an annotated rule object is well defined. | ||
* This component validates that an annotated rule object is well defined. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ | |
* Parameters of a rules engine. | ||
* | ||
* <ul> | ||
* <li>When parameters are used with a {@link DefaultRulesEngine}, they are applied on all registered rules.</li> | ||
* <li>When parameters are used with a {@link InferenceRulesEngine}, they are applied on candidate rules in each iteration.</li> | ||
* <li>When parameters are used with a {@link DefaultRulesEngine}, they are applied on <strong>all registered rules</strong>.</li> | ||
* <li>When parameters are used with a {@link InferenceRulesEngine}, they are applied on <strong>candidate rules in each iteration</strong>.</li> | ||
* </ul> | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,6 @@ | |
import static org.assertj.core.api.Assertions.assertThat; | ||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class for composite rule execution. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class CompositeRuleTest extends AbstractTest { | ||
|
||
private CompositeRule compositeRule; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,11 +33,6 @@ | |
import static org.mockito.Mockito.inOrder; | ||
import static org.mockito.Mockito.when; | ||
|
||
/** | ||
* Test class for custom rule ordering. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
@RunWith(MockitoJUnitRunner.class) | ||
public class CustomRuleOrderingTest extends AbstractTest { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,11 +44,6 @@ | |
import org.mockito.InOrder; | ||
import org.mockito.Mock; | ||
|
||
/** | ||
* Test class for {@link DefaultRulesEngine}. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class DefaultRulesEngineTest extends AbstractTest { | ||
|
||
@Mock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,6 @@ | |
|
||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class of the execution of rule listeners. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class RuleListenerTest extends AbstractTest { | ||
|
||
@Mock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,6 @@ | |
import static org.mockito.Mockito.verify; | ||
import static org.mockito.Mockito.when; | ||
|
||
/** | ||
* Test class of rules priority comparison. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class RulePriorityThresholdTest extends AbstractTest { | ||
|
||
@Before | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,6 @@ | |
import static java.util.Arrays.asList; | ||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class of the execution of rules engine listeners. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class RulesEngineListenerTest extends AbstractTest { | ||
|
||
@Mock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,6 @@ | |
|
||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class of "skip on first applied rule" parameter of Easy Rules default engine. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class SkipOnFirstAppliedRuleTest extends AbstractTest { | ||
|
||
@Before | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,6 @@ | |
|
||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class of "skip on first failed rule" parameter of Easy Rules default engine. | ||
* | ||
* @author Mahmoud Ben Hassine ([email protected]) | ||
*/ | ||
public class SkipOnFirstFailedRuleTest extends AbstractTest { | ||
|
||
@Before | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,6 @@ | |
|
||
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Test class of "skip on first non triggered rule" parameter of Easy Rules default engine. | ||
* | ||
* @author Krzysztof Kozlowski ([email protected]) | ||
*/ | ||
public class SkipOnFirstNonTriggeredRuleTest extends AbstractTest { | ||
|
||
@Before | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters