use of org.drools.verifier.core.index.model.FieldAction in project drools by kiegroup.
the class FieldInspectorUpdateTest method makeAction.
private FieldAction makeAction(final Field field) {
final FieldAction fieldAction = new FieldAction(field, mock(Column.class), new Values(11), configurationMock);
final ArrayList<Action> actionsList = new ArrayList<>();
actionsList.add(fieldAction);
final Actions actions = new Actions(actionsList);
when(field.getActions()).thenReturn(actions);
return fieldAction;
}
use of org.drools.verifier.core.index.model.FieldAction in project drools by kiegroup.
the class ActionInspectorConflictResolverTest method testNoConflict003.
@Test
public void testNoConflict003() throws Exception {
ActionInspector a = createSetActionInspector(new FieldAction(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), mock(Column.class), new Values(true), new AnalyzerConfigurationMock()));
ActionInspector b = createSetActionInspector(new FieldAction(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), mock(Column.class), new Values(true), new AnalyzerConfigurationMock()));
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
Aggregations