@Test public void testPlanItemActivityName() { // given: // the caseTask has a name "A CaseTask" String name = "A CaseTask"; caseTask.setName(name); // the planItem has an own name "My LocalName" String planItemName = "My LocalName"; planItem.setName(planItemName); // when CmmnActivity activity = handler.handleElement(planItem, context); // then assertNotEquals(name, activity.getName()); assertEquals(planItemName, activity.getName()); }
@Test public void testCaseTaskActivityName() { // given: // the caseTask has a name "A CaseTask" String name = "A CaseTask"; caseTask.setName(name); // when CmmnActivity activity = handler.handleElement(planItem, context); // then assertEquals(name, activity.getName()); }
@Test public void testCasePlanModelActivityName() { // given: // the case plan model has a name "A CasePlanModel" String name = "A CasePlanModel"; casePlanModel.setName(name); // when CmmnActivity activity = handler.handleElement(casePlanModel, context); // then assertEquals(name, activity.getName()); }