use of org.jeasy.rules.api.RulesEngineParameters in project easy-rules by j-easy.
the class RulePriorityThresholdTest method setup.
@Before
public void setup() throws Exception {
super.setup();
when(rule1.getPriority()).thenReturn(1);
when(rule1.evaluate(facts)).thenReturn(true);
RulesEngineParameters parameters = new RulesEngineParameters().priorityThreshold(1);
rulesEngine = new DefaultRulesEngine(parameters);
}
Aggregations