use of org.simplejavamail.api.email.Recipient in project nzyme by lennartkoopmann.
the class EmailCallbackTest method testParseRecipient.
@Test
public void testParseRecipient() throws Exception {
Recipient recipient = Tools.parseEmailAddress("Lennart Koopmann <lennart@0x58ed.com>");
assertEquals(recipient.getName(), "Lennart Koopmann");
assertEquals(recipient.getAddress(), "lennart@0x58ed.com");
assertEquals(recipient.getType(), Message.RecipientType.TO);
}
Aggregations