@Test public void testCleanupStr() { assertEquals("addfber1241qdw!èé$", StringUtils.cleanupStr("addfber1241qdw!èé$")); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd.abcd")); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd.abcd.")); assertEquals("_abcd_abcd", StringUtils.cleanupStr(".abcd_abcd")); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd/abcd")); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd/abcd/")); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/abcd_abcd")); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd'_abcd'")); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/abcd\"_abcd\"")); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/ab cd_abcd")); assertEquals(null, StringUtils.cleanupStr(null)); assertEquals("", StringUtils.cleanupStr("")); assertEquals("abcd", StringUtils.cleanupStr("\"abcd\".\"\"")); assertEquals("abcd", StringUtils.cleanupStr("\"abcd\"_\"\"")); }
public static String cleanupStr(String name) { return cleanupStr(name, false); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); static String cleanupStr(String name); static String cleanupStr(String name, boolean allowDottedKeys); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); static String cleanupStr(String name); static String cleanupStr(String name, boolean allowDottedKeys);  }