From 49dcdcae202c5e2476b0c69a192cb1b3c5634651 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 26 Feb 2015 15:07:27 -0500 Subject: [PATCH] Be sure we test putting hyphen names in bean props --- config/src/test/resources/beanconfig/beanconfig01.conf | 4 ++-- .../com/typesafe/config/impl/ConfigBeanFactoryTest.scala | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/src/test/resources/beanconfig/beanconfig01.conf b/config/src/test/resources/beanconfig/beanconfig01.conf index db2dca6b..27402fab 100644 --- a/config/src/test/resources/beanconfig/beanconfig01.conf +++ b/config/src/test/resources/beanconfig/beanconfig01.conf @@ -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}], diff --git a/config/src/test/scala/com/typesafe/config/impl/ConfigBeanFactoryTest.scala b/config/src/test/scala/com/typesafe/config/impl/ConfigBeanFactoryTest.scala index cccffd26..5f7d37ad 100644 --- a/config/src/test/scala/com/typesafe/config/impl/ConfigBeanFactoryTest.scala +++ b/config/src/test/scala/com/typesafe/config/impl/ConfigBeanFactoryTest.scala @@ -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