@Test public void shouldTextFromAtFormatStringWithoutAt() throws Exception { String text = "qwerty"; expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage(String.format("Given text should contain '@', while %s given.", text)); EmailFieldFormat.textFromAt(text); fail(); }
public static String textFromAt(final InternetAddress internetAddress) { return textFromAt(isNull(internetAddress) ? null : internetAddress.getAddress()); }
EmailFieldFormat { public static String textFromAt(final InternetAddress internetAddress) { return textFromAt(isNull(internetAddress) ? null : internetAddress.getAddress()); } }
EmailFieldFormat { public static String textFromAt(final InternetAddress internetAddress) { return textFromAt(isNull(internetAddress) ? null : internetAddress.getAddress()); }  }
EmailFieldFormat { public static String textFromAt(final InternetAddress internetAddress) { return textFromAt(isNull(internetAddress) ? null : internetAddress.getAddress()); }  static UnaryOperator<String> textFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<InternetAddress, String> emailFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<Locale, String> localeFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<Date, String> dateFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static String plainText(final Locale locale); static String plainText(final InternetAddress internetAddress); static String plainText(final String text); static String firstDozenThenStars(final InternetAddress internetAddress); static String firstDozenThenStars(final String text); static String textFromAt(final InternetAddress internetAddress); static String textFromAt(final String text); static String textUpToAt(final InternetAddress internetAddress); static String textUpToAt(final String text); static String dateFormat(final Date date); static String dateFormatWithZoneId(final Date date); static String nullValue(); }
EmailFieldFormat { public static String textFromAt(final InternetAddress internetAddress) { return textFromAt(isNull(internetAddress) ? null : internetAddress.getAddress()); }  static UnaryOperator<String> textFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<InternetAddress, String> emailFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<Locale, String> localeFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static Function<Date, String> dateFormatterFrom(@NonNull final LoggingStrategy loggingStrategy); static String plainText(final Locale locale); static String plainText(final InternetAddress internetAddress); static String plainText(final String text); static String firstDozenThenStars(final InternetAddress internetAddress); static String firstDozenThenStars(final String text); static String textFromAt(final InternetAddress internetAddress); static String textFromAt(final String text); static String textUpToAt(final InternetAddress internetAddress); static String textUpToAt(final String text); static String dateFormat(final Date date); static String dateFormatWithZoneId(final Date date); static String nullValue();  }