@Test public void convertFromKebabCase() { assertThat(CaseConverter.toCase("foo-bar-baz", CaseConverter.Case.LOWER_CAMEL_CASE)) .isEqualTo("fooBarBaz"); assertThat(CaseConverter.toCase("foo-bar-baz", CaseConverter.Case.SNAKE_CASE)) .isEqualTo("foo_bar_baz"); }
public static String toCase(String name, Case targetCase) { return nameCase(name).convertTo(name, targetCase); }
CaseConverter { public static String toCase(String name, Case targetCase) { return nameCase(name).convertTo(name, targetCase); } }
CaseConverter { public static String toCase(String name, Case targetCase) { return nameCase(name).convertTo(name, targetCase); } private  CaseConverter(); }
CaseConverter { public static String toCase(String name, Case targetCase) { return nameCase(name).convertTo(name, targetCase); } private  CaseConverter(); static String toCase(String name, Case targetCase); }
CaseConverter { public static String toCase(String name, Case targetCase) { return nameCase(name).convertTo(name, targetCase); } private  CaseConverter(); static String toCase(String name, Case targetCase); static final Pattern CAMEL_CASE_PATTERN; static final Pattern KEBAB_CASE_PATTERN; static final Pattern SNAKE_CASE_PATTERN; }