use of org.drools.verifier.core.index.model.Conditions in project drools by kiegroup.
the class FieldInspectorUpdateTest method makeCondition.
private FieldCondition makeCondition(final Field field) {
final FieldCondition fieldAction = new FieldCondition(field, mock(Column.class), "==", new Values(11), configurationMock);
final ArrayList<Condition> actionsList = new ArrayList<>();
actionsList.add(fieldAction);
final Conditions conditions = new Conditions(actionsList);
when(field.getConditions()).thenReturn(conditions);
return fieldAction;
}
use of org.drools.verifier.core.index.model.Conditions in project drools by kiegroup.
the class ConditionsListenerTest method setUp.
@Before
public void setUp() throws Exception {
configuration = new AnalyzerConfigurationMock();
conditions = new Conditions();
allListener = mock(AllListener.class);
conditions.where(Condition.value().any()).listen().all(allListener);
}
Aggregations