Description
@Test
public void testEmailValidatorBug() {
// The commons validator class accepts an address with an leading whitespace which seams to be a bug.
boolean shouldBe = false;
boolean isActual = true;
String eMail = " user@foo.com";
logger.debug("{} is {}", eMail, validator.isValid(eMail) ? "valid" : "invalid");
assertThat("Check failed for " + eMail, validator.isValid(eMail), is(isActual));
}
Attachments
Issue Links
- is duplicated by
-
VALIDATOR-449 Leading and trailing spaces in EmailValidator should not be valid
- Closed