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