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" : {
"abcd" : "abcd",
"abcdAgain" : ${strings.a}${strings.b}${strings.c}${strings.d},
"abcd-again" : ${strings.a}${strings.b}${strings.c}${strings.d},
"a" : "a",
"b" : "b",
"c" : "c",
@ -42,7 +42,7 @@
"empty" : [],
"ofInt" : [1, 2, 3],
"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],
"ofBoolean" : [true, false],
"ofArray" : [${arrays.ofString}, ${arrays.ofString}, ${arrays.ofString}],

View File

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