@Test public void shouldCreateAContactMessageWithOneContactlists() { participantGroup = null; waitingList = null; BusinessGroupSendToChooserFormUIModel sendToChooserFormUIModel = new BusinessGroupSendToChooserFormUIModel(peterBichselAsFromIdentity, ownerGroup, participantGroup, waitingList); ContactMessage contactMessage = sendToChooserFormUIModel.getContactMessageWithRecipientsAnd(MY_SUBJECT, IS_OVER_THE_OCEAN); List<ContactList> emailToContactLists = contactMessage.getEmailToContactLists(); verifyContactListFor(ownerContactListName, ownerGroupList, emailToContactLists); verifyBasicContactMessageParts(contactMessage); assertTrue("Contact Message has at least one address", contactMessage.hasAtLeastOneAddress()); }
public ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText) { contactMessage.setBodyText(bodyText); contactMessage.setSubject(subject); return contactMessage; }
BusinessGroupSendToChooserFormUIModel { public ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText) { contactMessage.setBodyText(bodyText); contactMessage.setSubject(subject); return contactMessage; } }
BusinessGroupSendToChooserFormUIModel { public ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText) { contactMessage.setBodyText(bodyText); contactMessage.setSubject(subject); return contactMessage; } BusinessGroupSendToChooserFormUIModel(Identity fromIdentity, GroupParameter ownerGroup, GroupParameter participantGroup, GroupParameter waitingList); }
BusinessGroupSendToChooserFormUIModel { public ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText) { contactMessage.setBodyText(bodyText); contactMessage.setSubject(subject); return contactMessage; } BusinessGroupSendToChooserFormUIModel(Identity fromIdentity, GroupParameter ownerGroup, GroupParameter participantGroup, GroupParameter waitingList); ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText); }
BusinessGroupSendToChooserFormUIModel { public ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText) { contactMessage.setBodyText(bodyText); contactMessage.setSubject(subject); return contactMessage; } BusinessGroupSendToChooserFormUIModel(Identity fromIdentity, GroupParameter ownerGroup, GroupParameter participantGroup, GroupParameter waitingList); ContactMessage getContactMessageWithRecipientsAnd(String subject, String bodyText);  }