* @author Hardy Ferentschik
*/
public class BlankValidatorTest {
@Test
public void testConstraintValidator() {
NotBlankValidator constraintValidator = new NotBlankValidator();
assertTrue( constraintValidator.isValid( "a", null ) );
assertTrue( constraintValidator.isValid( null, null ) );
assertFalse( constraintValidator.isValid( "", null ) );
assertFalse( constraintValidator.isValid( " ", null ) );
assertFalse( constraintValidator.isValid( "\t", null ) );
assertFalse( constraintValidator.isValid( "\n", null ) );
}