@Test public void shouldCreateAContactMessageWithNoContactlists() { ownerGroup = null; participantGroup = null; waitingList = null; BusinessGroupSendToChooserFormUIModel sendToChooserFormUIModel = new BusinessGroupSendToChooserFormUIModel(peterBichselAsFromIdentity, ownerGroup, participantGroup, waitingList); ContactMessage contactMessage = sendToChooserFormUIModel.getContactMessageWithRecipientsAnd(MY_SUBJECT, IS_OVER_THE_OCEAN); verifyBasicContactMessageParts(contactMessage); boolean noAddresses = ! contactMessage.hasAtLeastOneAddress(); assertTrue("Contact Message has not one address", noAddresses); }
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);  }