2324252627282930
/** * Tests for specialCharcter. */ @Test public void testSpecialCharcter() { final NameCharacterValidator validator = new NameCharacterValidator("asdf_"); Assert.assertNotNull(validator.validate()); }
3233343536373839
/** * Tests for startingWithNumber. */ @Test public void testStartingWithNumber() { final NameCharacterValidator validator = new NameCharacterValidator("1asdf"); Assert.assertNotNull(validator.validate()); }
4142434445464748
/** * Tests for oKString. */ @Test public void testOKString() { final NameCharacterValidator validator = new NameCharacterValidator("asdf"); Assert.assertNull(validator.validate()); }