Пример #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);
 }
Пример #2
0
 public void testSimpleSanitized() {
   String out = StringHelper.sanitize("hello");
   assertTrue("Should not contain : ", out.indexOf(':') == -1);
   assertTrue("Should not contain . ", out.indexOf('.') == -1);
 }