unit test for reading config as a String
@@ -48,6 +48,17 @@ public class Bootique_ConfigurationIT {
assertTrue(config.isEmpty());
}
+ @Test
+ public void testConfigBoundToString() {
+ BQRuntime runtime = testFactory
+ .app()
+ .module(b -> BQCoreModule.extend(b).setProperty("bq.x", "val"))
+ .createRuntime();
+
+ String val = runtime.getInstance(ConfigurationFactory.class).config(String.class, "x");
+ assertEquals("val", val);
+ }
+
@Test
public void testCombineConfigAndEmptyConfig() {
BQRuntime runtime = testFactory
