Beispiel #1
0
 public EmailAddress addEmailAddress(EmailAddress sorEmailAddress) {
   MockEmailAddress ea = new MockEmailAddress();
   ea.setAddress(sorEmailAddress.getAddress());
   ea.setAddressType(sorEmailAddress.getAddressType());
   emailAddresses.add(ea);
   return ea;
 }
 // where only an address is supplied
 private void expectNameAddress3(EmailAddress e) {
   assertTrue("Expected null, found <" + e.getName() + ">", e.getName() == null);
   assertEquals("address", e.getAddress());
 }
 // where the name contains <>
 private void expectNameAddress2(EmailAddress e) {
   assertEquals("<name>", e.getName());
   assertEquals("address", e.getAddress());
 }