@NoSpecialChars
public String field;
}
NoSpecialCharsValidator validator = initializeValidator(AnnotationWrapper.class);
//when
boolean manySpecials = validator.isValid("*%%Pawel@#$Stawicki**", null);
boolean dot = validator.isValid("Pawel.Stawicki", null);
boolean at = validator.isValid("Pawel@Stawicki", null);
//then
Assert.assertFalse(manySpecials, "Special characters considered valid");
Assert.assertFalse(dot, "Special characters considered valid");
Assert.assertFalse(at, "Special characters considered valid");