Exemple #1
0
 @Test
 public void testInvalid() {
   for (String surl : invalidSURLs) {
     assertFalse("Invalid SURL considered valid: " + surl, SURLValidator.valid(surl));
   }
 }
Exemple #2
0
 @Test
 public void testValid() {
   for (String surl : validSURLs) {
     assertTrue("Valid SURL considered invalid: " + surl, SURLValidator.valid(surl));
   }
 }