@Test public void goodTests() { for (String test : goodTests) { assertTrue(test, EmailValidator.valid(test)); } }
public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); }
EmailValidator { public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); } }
EmailValidator { public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); }  }
EmailValidator { public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); }  static boolean valid(String email); }
EmailValidator { public static boolean valid(String email) { return EMAIL_PATTERN.matcher(email).matches(); }  static boolean valid(String email);  }