mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
Test that toCamelCase leaves already-camel-case stuff unchanged
This commit is contained in:
parent
4aab07983f
commit
fe385cca06
@ -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-"))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user