@Test public void testGoodId() { for (String id : GOOD_ID_LIST) assertEquals("ID: " + id, true, Constants.ID_PATTERN.matcher(id).matches()); }
@Test public void testBadId() { for (String id : BAD_ID_LIST) assertEquals("ID: " + id, false, Constants.ID_PATTERN.matcher(id).matches()); }