@Test void testToInternetAddress() throws AddressException { InternetAddress b = new InternetAddress(GOOD_ADDRESS); MailAddress a = new MailAddress(b); assertThat(a.toInternetAddress()).isEqualTo(b); assertThat(a.toString()).isEqualTo(GOOD_ADDRESS); }
public InternetAddress toInternetAddress() { try { return new InternetAddress(toString()); } catch (javax.mail.internet.AddressException ae) { return null; } }
MailAddress implements java.io.Serializable { public InternetAddress toInternetAddress() { try { return new InternetAddress(toString()); } catch (javax.mail.internet.AddressException ae) { return null; } } }
MailAddress implements java.io.Serializable { public InternetAddress toInternetAddress() { try { return new InternetAddress(toString()); } catch (javax.mail.internet.AddressException ae) { return null; } } private  MailAddress();  MailAddress(String address);  MailAddress(String localPart, String domain);  MailAddress(String localPart, Domain domain);  MailAddress(InternetAddress address); }
MailAddress implements java.io.Serializable { public InternetAddress toInternetAddress() { try { return new InternetAddress(toString()); } catch (javax.mail.internet.AddressException ae) { return null; } } private  MailAddress();  MailAddress(String address);  MailAddress(String localPart, String domain);  MailAddress(String localPart, Domain domain);  MailAddress(InternetAddress address); static MailAddress nullSender(); @Deprecated static MailAddress getMailSender(String sender); @Deprecated String getHost(); Domain getDomain(); @Deprecated String getUser(); String getLocalPart(); String asString(); @Override String toString(); String asPrettyString(); InternetAddress toInternetAddress(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Deprecated boolean isNullSender(); }
MailAddress implements java.io.Serializable { public InternetAddress toInternetAddress() { try { return new InternetAddress(toString()); } catch (javax.mail.internet.AddressException ae) { return null; } } private  MailAddress();  MailAddress(String address);  MailAddress(String localPart, String domain);  MailAddress(String localPart, Domain domain);  MailAddress(InternetAddress address); static MailAddress nullSender(); @Deprecated static MailAddress getMailSender(String sender); @Deprecated String getHost(); Domain getDomain(); @Deprecated String getUser(); String getLocalPart(); String asString(); @Override String toString(); String asPrettyString(); InternetAddress toInternetAddress(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Deprecated boolean isNullSender(); static final Logger LOGGER; static final long serialVersionUID; static final String NULL_SENDER_AS_STRING; }