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