@Test public void testCreateRepeatingGroupInGroup_NoCdrList() { Cdr parent = new Cdr("Parent"); CdrItem groupItem = new CdrItem(CdrItem.CdrItemType.CDR_ARRAY); groupItem.setCdrs(new ArrayList<>()); parent.setItem("Child", groupItem); when(handlers.getSentMessage("Parent")).thenReturn(parent); fixtures.createRepeatingGroupInGroup("Child2", "Child", "Parent"); assertNotNull(groupItem.getCdrs()); Cdr child = groupItem.getCdrs().get(0); assertEquals("Child", child.getType()); assertTrue(child.containsKey("Child2")); assertEquals(CdrItem.CdrItemType.CDR_ARRAY, child.getItem("Child2").getType()); }
@Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName) { createRepeatingGroupWithFieldsInGroup(groupType, null, existingGroup, messageName); }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName) { createRepeatingGroupWithFieldsInGroup(groupType, null, existingGroup, messageName); } }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName) { createRepeatingGroupWithFieldsInGroup(groupType, null, existingGroup, messageName); } FixFixtures(EtiqetHandlers handlers); }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName) { createRepeatingGroupWithFieldsInGroup(groupType, null, existingGroup, messageName); } FixFixtures(EtiqetHandlers handlers); @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroup(String groupType, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFields(String groupType, String params, String messageName); @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFieldsInGroup(String groupType, String params, String existingGroup, String messageName); @Then("add fields \"([^\"]*)\" to \"([^\"]*)\" group in message \"([^\"]*)\"") void addFieldsToRepeatingGroup(String params, String groupType, String messageName); }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName) { createRepeatingGroupWithFieldsInGroup(groupType, null, existingGroup, messageName); } FixFixtures(EtiqetHandlers handlers); @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroup(String groupType, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFields(String groupType, String params, String messageName); @Then("create a repeating group \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupInGroup(String groupType, String existingGroup, String messageName); @Then("create a repeating group \"([^\"]*)\" with \"([^\"]*)\" in group \"([^\"]*)\" in message \"([^\"]*)\"") void createRepeatingGroupWithFieldsInGroup(String groupType, String params, String existingGroup, String messageName); @Then("add fields \"([^\"]*)\" to \"([^\"]*)\" group in message \"([^\"]*)\"") void addFieldsToRepeatingGroup(String params, String groupType, String messageName);  }