@Test void isUnalteredOrReversePathOrSenderShouldReturnTrueWhenMailAddressIsSpecialUnaltered() { boolean unalteredOrReversePathOrSender = MailAddressUtils.isUnalteredOrReversePathOrSender(SpecialAddress.UNALTERED); assertThat(unalteredOrReversePathOrSender).isTrue(); }
public static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress) { return mailAddress.equals(SpecialAddress.UNALTERED) || mailAddress.equals(SpecialAddress.REVERSE_PATH) || mailAddress.equals(SpecialAddress.SENDER); }
MailAddressUtils { public static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress) { return mailAddress.equals(SpecialAddress.UNALTERED) || mailAddress.equals(SpecialAddress.REVERSE_PATH) || mailAddress.equals(SpecialAddress.SENDER); } }
MailAddressUtils { public static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress) { return mailAddress.equals(SpecialAddress.UNALTERED) || mailAddress.equals(SpecialAddress.REVERSE_PATH) || mailAddress.equals(SpecialAddress.SENDER); }  }
MailAddressUtils { public static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress) { return mailAddress.equals(SpecialAddress.UNALTERED) || mailAddress.equals(SpecialAddress.REVERSE_PATH) || mailAddress.equals(SpecialAddress.SENDER); }  static List<MailAddress> from(InternetAddress[] internetAddresses); static List<InternetAddress> toInternetAddresses(List<MailAddress> mailAddresses); static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses); static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress); }
MailAddressUtils { public static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress) { return mailAddress.equals(SpecialAddress.UNALTERED) || mailAddress.equals(SpecialAddress.REVERSE_PATH) || mailAddress.equals(SpecialAddress.SENDER); }  static List<MailAddress> from(InternetAddress[] internetAddresses); static List<InternetAddress> toInternetAddresses(List<MailAddress> mailAddresses); static InternetAddress[] toInternetAddressArray(List<MailAddress> mailAddresses); static boolean isUnalteredOrReversePathOrSender(MailAddress mailAddress);  }