Test that toCamelCase leaves already-camel-case stuff unchanged

This commit is contained in:
Havoc Pennington 2015-02-26 14:20:01 -05:00
parent 4aab07983f
commit fe385cca06

View File

@ -19,7 +19,9 @@ class ConfigBeanFactoryTest extends TestUtils {
@Test
def toCamelCase() {
assertEquals("configProp", ConfigImplUtil.toCamelCase("config-prop"))
assertEquals("configProp", ConfigImplUtil.toCamelCase("configProp"))
assertEquals("fooBar", ConfigImplUtil.toCamelCase("foo-----bar"))
assertEquals("fooBar", ConfigImplUtil.toCamelCase("fooBar"))
assertEquals("foo", ConfigImplUtil.toCamelCase("-foo"))
assertEquals("bar", ConfigImplUtil.toCamelCase("bar-"))
}