Esempio n. 1
0
 public void testNotFileFriendlySimpleSanitized() {
   String out = StringHelper.sanitize("c:\\helloworld");
   assertTrue("Should not contain : ", out.indexOf(':') == -1);
   assertTrue("Should not contain . ", out.indexOf('.') == -1);
 }
Esempio n. 2
0
 public void testSimpleSanitized() {
   String out = StringHelper.sanitize("hello");
   assertTrue("Should not contain : ", out.indexOf(':') == -1);
   assertTrue("Should not contain . ", out.indexOf('.') == -1);
 }