2324252627282930
/** * Tests for emptyString. */ @Test public void testEmptyString() { final MinLengthValidator validator = new MinLengthValidator("", 4); Assert.assertNotNull(validator.validate()); }
3233343536373839
/** * Tests for shortString. */ @Test public void testShortString() { final MinLengthValidator validator = new MinLengthValidator("asd", 4); Assert.assertNotNull(validator.validate()); }
4142434445464748
/** * Tests for oKString. */ @Test public void testOKString() { final MinLengthValidator validator = new MinLengthValidator("asdf", 4); Assert.assertNull(validator.validate()); }