Be sure we test putting hyphen names in bean props

This commit is contained in:
Havoc Pennington 2015-02-26 15:07:27 -05:00
parent fe385cca06
commit 49dcdcae20
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@
// //
"strings" : { "strings" : {
"abcd" : "abcd", "abcd" : "abcd",
"abcdAgain" : ${strings.a}${strings.b}${strings.c}${strings.d}, "abcd-again" : ${strings.a}${strings.b}${strings.c}${strings.d},
"a" : "a", "a" : "a",
"b" : "b", "b" : "b",
"c" : "c", "c" : "c",
@ -42,7 +42,7 @@
"empty" : [], "empty" : [],
"ofInt" : [1, 2, 3], "ofInt" : [1, 2, 3],
"ofString" : [ ${strings.a}, ${strings.b}, ${strings.c} ], "ofString" : [ ${strings.a}, ${strings.b}, ${strings.c} ],
"ofDouble" : [3.14, 4.14, 5.14], "of-double" : [3.14, 4.14, 5.14],
"ofNull" : [null, null, null], "ofNull" : [null, null, null],
"ofBoolean" : [true, false], "ofBoolean" : [true, false],
"ofArray" : [${arrays.ofString}, ${arrays.ofString}, ${arrays.ofString}], "ofArray" : [${arrays.ofString}, ${arrays.ofString}, ${arrays.ofString}],

View File

@ -96,6 +96,7 @@ class ConfigBeanFactoryTest extends TestUtils {
List("a", "b", "c").asJava).asJava, List("a", "b", "c").asJava).asJava,
beanConfig.getOfArray) beanConfig.getOfArray)
assertEquals(3, beanConfig.getOfObject.size) assertEquals(3, beanConfig.getOfObject.size)
assertEquals(3, beanConfig.getOfDouble.size)
} }
@Test @Test