use of org.drools.workbench.services.verifier.api.client.index.keys.Values in project drools-wb by kiegroup.
the class ConditionTest method changeValue.
@Test
public void changeValue() throws Exception {
condition.setValue(new Values(2));
assertEquals(1, condition.getValues().size());
assertEquals(2, condition.getValues().iterator().next());
}
use of org.drools.workbench.services.verifier.api.client.index.keys.Values in project drools-wb by kiegroup.
the class ValuesResolver method getValues.
public Values getValues() throws ValueResolveException {
final String type = getType();
final Values values = getValues(type);
Logger.add("ConditionCol: " + ToString.toString(conditionColumn) + " realCellValue: " + ToString.toString(realCellValue) + " type: " + type + " values: " + values.toString());
return values;
}
use of org.drools.workbench.services.verifier.api.client.index.keys.Values in project drools-wb 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.workbench.services.verifier.api.client.index.keys.Values in project drools-wb by kiegroup.
the class FieldInspectorUpdateTest method updateAction.
@Test
public void updateAction() throws Exception {
fieldAction.setValue(new Values(20));
verify(ruleInspectorUpdater).resetActionsInspectors();
}
use of org.drools.workbench.services.verifier.api.client.index.keys.Values in project drools-wb by kiegroup.
the class ActionTest method changeValue.
@Test
public void changeValue() throws Exception {
action.setValue(new Values(false));
assertEquals(1, action.getValues().size());
assertEquals(false, action.getValues().iterator().next());
}
Aggregations