Пример #1
0
 @Test
 public void testGoodId() {
   for (String id : GOOD_ID_LIST)
     assertEquals("ID: " + id, true, Constants.ID_PATTERN.matcher(id).matches());
 }
Пример #2
0
 @Test
 public void testBadId() {
   for (String id : BAD_ID_LIST)
     assertEquals("ID: " + id, false, Constants.ID_PATTERN.matcher(id).matches());
 }