@Test public void testCreateRepeatingGroup_GroupAddedToMessage() { Cdr fixMsg = new Cdr("TEST_FIX"); when(handlers.getSentMessage("testMessage")).thenReturn(fixMsg); fixtures.createRepeatingGroup("Parties", "testMessage"); assertTrue(fixMsg.containsKey("Parties")); CdrItem parties = fixMsg.getItem("Parties"); assertNotNull(parties); assertNotNull(parties.getCdrs()); }
@Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroup(String groupType, String messageName) { Cdr message = getMessage(messageName); addGroupToCdr(groupType, message); }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroup(String groupType, String messageName) { Cdr message = getMessage(messageName); addGroupToCdr(groupType, message); } }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroup(String groupType, String messageName) { Cdr message = getMessage(messageName); addGroupToCdr(groupType, message); } FixFixtures(EtiqetHandlers handlers); }
FixFixtures { @Then("create a repeating group \"([^\"]*)\" in message \"([^\"]*)\"") public void createRepeatingGroup(String groupType, String messageName) { Cdr message = getMessage(messageName); addGroupToCdr(groupType, message); } 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 message \"([^\"]*)\"") public void createRepeatingGroup(String groupType, String messageName) { Cdr message = getMessage(messageName); addGroupToCdr(groupType, message); } 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);  }