Search in sources :

Example 1 with Actions

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

Aggregations

ArrayList (java.util.ArrayList)1 Values (org.drools.verifier.core.index.keys.Values)1 Action (org.drools.verifier.core.index.model.Action)1 Actions (org.drools.verifier.core.index.model.Actions)1 Column (org.drools.verifier.core.index.model.Column)1 FieldAction (org.drools.verifier.core.index.model.FieldAction)1