Search in sources :

Example 1 with ReassignmentValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.

the class ReassignmentTypeListValueTest method getReassignmentValues.

private List<ReassignmentValue> getReassignmentValues() {
    List<ReassignmentValue> result = new ArrayList<>();
    result.add(new ReassignmentValue("AAA", "1h", Arrays.asList(new String[] { "foo", "bar", "baz" }), Arrays.asList(new String[] { "foo", "bar", "baz" })));
    return result;
}
Also used : ArrayList(java.util.ArrayList) ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue)

Example 2 with ReassignmentValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.

the class ReassignmentsInfoTest method getReassignmentValues.

private List<ReassignmentValue> getReassignmentValues() {
    List<ReassignmentValue> result = new ArrayList<>();
    result.add(new ReassignmentValue("AAA", "1h", Arrays.asList(new String[] { "foo", "bar", "baz" }), Arrays.asList(new String[] { "foo", "bar", "baz" })));
    return result;
}
Also used : ArrayList(java.util.ArrayList) ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue)

Example 3 with ReassignmentValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.

the class ReassignmentValueValidatorTest method test5DigExpiresAtReassignmentValue.

@Test
public void test5DigExpiresAtReassignmentValue() {
    ReassignmentValue value = new ReassignmentValue();
    value.setDuration("11111d");
    boolean result = validator.isValid(value, context);
    assertTrue(result);
    assertTrue(errorMessages.isEmpty());
}
Also used : ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue) Test(org.junit.Test)

Example 4 with ReassignmentValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.

the class ReassignmentValueValidatorTest method testIsTooBigDurationReassignmentValue.

@Test
public void testIsTooBigDurationReassignmentValue() {
    ReassignmentValue value = new ReassignmentValue();
    value.setDuration("1111111111111111111111111111111111111111111d");
    boolean result = validator.isValid(value, context);
    assertFalse(result);
    assertFalse(errorMessages.isEmpty());
}
Also used : ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue) Test(org.junit.Test)

Example 5 with ReassignmentValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue in project kie-wb-common by kiegroup.

the class ReassignmentValueValidatorTest method testEmptyReassignmentValue.

@Test
public void testEmptyReassignmentValue() {
    boolean result = validator.isValid(new ReassignmentValue(), context);
    assertTrue(result);
    assertTrue(errorMessages.isEmpty());
}
Also used : ReassignmentValue(org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue) Test(org.junit.Test)

Aggregations

ReassignmentValue (org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentValue)22 Test (org.junit.Test)17 ArrayList (java.util.ArrayList)4 ValueChangeEvent (com.google.gwt.event.logical.shared.ValueChangeEvent)1 ValueChangeHandler (com.google.gwt.event.logical.shared.ValueChangeHandler)1 GwtEvent (com.google.gwt.event.shared.GwtEvent)1 HandlerRegistration (com.google.gwt.event.shared.HandlerRegistration)1 IsWidget (com.google.gwt.user.client.ui.IsWidget)1 Widget (com.google.gwt.user.client.ui.Widget)1 HTMLInputElement (elemental2.dom.HTMLInputElement)1 List (java.util.List)1 Collectors (java.util.stream.Collectors)1 Dependent (javax.enterprise.context.Dependent)1 Inject (javax.inject.Inject)1 StunnerBPMNConstants (org.kie.workbench.common.stunner.bpmn.client.forms.fields.i18n.StunnerBPMNConstants)1 ReassignmentRow (org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.ReassignmentRow)1 ReassignmentsEditorWidget (org.kie.workbench.common.stunner.bpmn.client.forms.fields.reassignmentsEditor.ReassignmentsEditorWidget)1 ReflectionUtilsTest (org.kie.workbench.common.stunner.bpmn.client.forms.util.ReflectionUtilsTest)1 UserTask (org.kie.workbench.common.stunner.bpmn.definition.UserTask)1 ReassignmentTypeListValue (org.kie.workbench.common.stunner.bpmn.definition.property.reassignment.ReassignmentTypeListValue)1