use of org.camunda.bpm.dmn.engine.DmnDecisionResultEntries in project camunda-bpm-platform by camunda.
the class DmnDecisionTaskResultListenerTest method testSingleEntryList.
@Deployment(resources = { TEST_CASE, TEST_DECISION })
public void testSingleEntryList() {
startTestCase("single entry list");
assertEquals(2, results.size());
for (DmnDecisionResultEntries output : results) {
assertEquals("foo", output.getFirstEntry());
assertEquals(Variables.stringValue("foo"), output.getFirstEntryTyped());
}
}
use of org.camunda.bpm.dmn.engine.DmnDecisionResultEntries in project camunda-bpm-platform by camunda.
the class DmnDecisionTaskResultListenerTest method testCollectSumHitPolicySingleEntry.
@Deployment(resources = { TEST_CASE, TEST_DECISION_COLLECT_SUM })
public void testCollectSumHitPolicySingleEntry() {
startTestCase("single entry");
assertEquals(1, results.size());
DmnDecisionResultEntries firstOutput = results.get(0);
assertEquals(12, firstOutput.getFirstEntry());
assertEquals(Variables.integerValue(12), firstOutput.getFirstEntryTyped());
}
use of org.camunda.bpm.dmn.engine.DmnDecisionResultEntries in project camunda-bpm-platform by camunda.
the class DmnDecisionTaskResultListenerTest method testCollectCountHitPolicyNoOutput.
@Deployment(resources = { TEST_CASE, TEST_DECISION_COLLECT_COUNT })
public void testCollectCountHitPolicyNoOutput() {
startTestCase("no output");
assertEquals(1, results.size());
DmnDecisionResultEntries firstOutput = results.get(0);
assertEquals(0, firstOutput.getFirstEntry());
assertEquals(Variables.integerValue(0), firstOutput.getFirstEntryTyped());
}
use of org.camunda.bpm.dmn.engine.DmnDecisionResultEntries in project camunda-bpm-platform by camunda.
the class DmnDecisionTaskResultListenerTest method testMultipleEntries.
@Deployment(resources = { TEST_CASE, TEST_DECISION })
public void testMultipleEntries() {
startTestCase("multiple entries");
DmnDecisionResultEntries firstOutput = results.get(0);
assertEquals("foo", firstOutput.get("result1"));
assertEquals("bar", firstOutput.get("result2"));
assertEquals(Variables.stringValue("foo"), firstOutput.getEntryTyped("result1"));
assertEquals(Variables.stringValue("bar"), firstOutput.getEntryTyped("result2"));
}
use of org.camunda.bpm.dmn.engine.DmnDecisionResultEntries in project camunda-bpm-platform by camunda.
the class DmnDecisionResultListenerTest method testMultipleEntries.
@Deployment(resources = { TEST_PROCESS, TEST_DECISION })
public void testMultipleEntries() {
startTestProcess("multiple entries");
DmnDecisionResultEntries firstOutput = results.get(0);
assertEquals("foo", firstOutput.get("result1"));
assertEquals("bar", firstOutput.get("result2"));
assertEquals(Variables.stringValue("foo"), firstOutput.getEntryTyped("result1"));
assertEquals(Variables.stringValue("bar"), firstOutput.getEntryTyped("result2"));
}
Aggregations