Search in sources :

Example 1 with Actions

use of org.drools.workbench.services.verifier.api.client.index.Actions 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;
}
Also used : FieldAction(org.drools.workbench.services.verifier.api.client.index.FieldAction) Action(org.drools.workbench.services.verifier.api.client.index.Action) Column(org.drools.workbench.services.verifier.api.client.index.Column) Actions(org.drools.workbench.services.verifier.api.client.index.Actions) Values(org.drools.workbench.services.verifier.api.client.index.keys.Values) ArrayList(java.util.ArrayList) FieldAction(org.drools.workbench.services.verifier.api.client.index.FieldAction)

Aggregations

ArrayList (java.util.ArrayList)1 Action (org.drools.workbench.services.verifier.api.client.index.Action)1 Actions (org.drools.workbench.services.verifier.api.client.index.Actions)1 Column (org.drools.workbench.services.verifier.api.client.index.Column)1 FieldAction (org.drools.workbench.services.verifier.api.client.index.FieldAction)1 Values (org.drools.workbench.services.verifier.api.client.index.keys.Values)1