mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
Be sure we test putting hyphen names in bean props
This commit is contained in:
parent
fe385cca06
commit
49dcdcae20
@ -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}],
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user