Skip to content

Commit

Permalink
update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Dec 17, 2017
1 parent 24544fa commit 366e342
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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])
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class MVELRuleFactory {

/**
* Create a new {@link MVELRule} from a rule descriptor.
*
* @param ruleDescriptor in yaml format
* @return a new rule
* @throws FileNotFoundException if the rule descriptor cannot be found
Expand Down

0 comments on commit 366e342

Please sign in to comment.