@Test public void testValidate_validEmail() throws Exception { assertThat(tested.validate("foo@gmail.com")).isTrue(); }
public boolean validate(final String hex) { matcher = pattern.matcher(hex); return matcher.matches(); }
EmailValidator { public boolean validate(final String hex) { matcher = pattern.matcher(hex); return matcher.matches(); } }
EmailValidator { public boolean validate(final String hex) { matcher = pattern.matcher(hex); return matcher.matches(); } EmailValidator(); }
EmailValidator { public boolean validate(final String hex) { matcher = pattern.matcher(hex); return matcher.matches(); } EmailValidator(); boolean validate(final String hex); }
EmailValidator { public boolean validate(final String hex) { matcher = pattern.matcher(hex); return matcher.matches(); } EmailValidator(); boolean validate(final String hex);  }