use of org.camunda.bpm.engine.impl.dmn.result.SingleResultDecisionResultMapper in project camunda-bpm-platform by camunda.
the class DecisionTaskPlanItemHandlerTest method testMapDecisionResult.
@Test
public void testMapDecisionResult() {
// given:
decisionTask.setCamundaMapDecisionResult("singleResult");
// when
CmmnActivity activity = handler.handleElement(planItem, context);
// then
DmnDecisionTaskActivityBehavior behavior = (DmnDecisionTaskActivityBehavior) activity.getActivityBehavior();
DecisionResultMapper mapper = behavior.getDecisionTableResultMapper();
assertTrue(mapper instanceof SingleResultDecisionResultMapper);
}
Aggregations