@Test public void testSlugify() { slg.setLowerCase(false); assertEquals("Hello_World", slg.slugify("Hello World")); assertEquals("HelloWorld", slg.slugify("HelloWorld")); slg.setLowerCase(true); assertEquals("hello_world", slg.slugify("Hello World")); Map<String, String> customReplacements = new HashMap<String, String>(); customReplacements.put("Hello","x"); slg.setCustomReplacements(customReplacements); assertEquals("x_world", slg.slugify("Hello World") ); }
public Slugify() { this(true); }
Slugify { public Slugify() { this(true); } }
Slugify { public Slugify() { this(true); } Slugify();  Slugify(final boolean lowerCase); }
Slugify { public Slugify() { this(true); } Slugify();  Slugify(final boolean lowerCase); String slugify(String input); Map<String, String> getCustomReplacements(); void setCustomReplacements(Map<String, String> customReplacements); boolean getLowerCase(); void setLowerCase(boolean lowerCase); }
Slugify { public Slugify() { this(true); } Slugify();  Slugify(final boolean lowerCase); String slugify(String input); Map<String, String> getCustomReplacements(); void setCustomReplacements(Map<String, String> customReplacements); boolean getLowerCase(); void setLowerCase(boolean lowerCase);  }