@Test public void isValidEmail() throws Exception { assertTrue(OtherUtilities.isValidEmail("a.b@g.com")); assertTrue(OtherUtilities.isValidEmail("aaa.bbb@ggg.com")); assertTrue(OtherUtilities.isValidEmail("qweqwe@a.com")); assertFalse(OtherUtilities.isValidEmail("")); assertFalse(OtherUtilities.isValidEmail("a.b@c")); assertFalse(OtherUtilities.isValidEmail("qw..eqwe@.")); }
public static boolean isValidEmail(@NotNull final String emailStr) { return emailPattern.matcher(emailStr).matches(); }
OtherUtilities { public static boolean isValidEmail(@NotNull final String emailStr) { return emailPattern.matcher(emailStr).matches(); } }
OtherUtilities { public static boolean isValidEmail(@NotNull final String emailStr) { return emailPattern.matcher(emailStr).matches(); } private  OtherUtilities(); }
OtherUtilities { public static boolean isValidEmail(@NotNull final String emailStr) { return emailPattern.matcher(emailStr).matches(); } private  OtherUtilities(); static boolean isValidEmail(@NotNull final String emailStr); static boolean isValidIpPort(@NotNull final String portStr); static boolean isValidIp(@NotNull final String ipStr); @NotNull static String changeNewLineFromWindowsToUnix(@NotNull final String string); @NotNull static String changeNewLineFromUnixToWindows(@NotNull final String string); }
OtherUtilities { public static boolean isValidEmail(@NotNull final String emailStr) { return emailPattern.matcher(emailStr).matches(); } private  OtherUtilities(); static boolean isValidEmail(@NotNull final String emailStr); static boolean isValidIpPort(@NotNull final String portStr); static boolean isValidIp(@NotNull final String ipStr); @NotNull static String changeNewLineFromWindowsToUnix(@NotNull final String string); @NotNull static String changeNewLineFromUnixToWindows(@NotNull final String string);  }