use of org.drools.workbench.services.verifier.api.client.index.FieldAction in project drools-wb by kiegroup.
the class FieldInspectorUpdateTest method makeAction.
private FieldAction makeAction(final Field field) {
final FieldAction fieldAction = new FieldAction(field, mock(Column.class), DataType.DataTypes.NUMERIC, 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.workbench.services.verifier.api.client.index.FieldAction in project drools-wb 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), DataType.DataTypes.BOOLEAN, new Values(true), new AnalyzerConfigurationMock()));
ActionInspector b = createSetActionInspector(new FieldAction(new Field(mock(ObjectField.class), "Person", "String", "name", new AnalyzerConfigurationMock()), mock(Column.class), DataType.DataTypes.STRING, new Values(true), new AnalyzerConfigurationMock()));
assertFalse(a.conflicts(b));
assertFalse(b.conflicts(a));
}
Aggregations