@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 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()); }