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