mirror of
https://github.com/lightbend/config.git
synced 2025-03-14 19:30:25 +08:00
better test case
This commit is contained in:
parent
f5e9354ba0
commit
d8f31828ce
@ -40,6 +40,7 @@ class ConfigSubstitutionTest extends TestUtils {
|
||||
"bool" : true,
|
||||
"null" : null,
|
||||
"string" : "hello",
|
||||
"stringwsub": "hello ${foo} bar",
|
||||
"double" : 3.14
|
||||
}
|
||||
}
|
||||
@ -88,6 +89,13 @@ class ConfigSubstitutionTest extends TestUtils {
|
||||
assertEquals(stringValue("hello"), v)
|
||||
}
|
||||
|
||||
@Test
|
||||
def resolveStringWSub() {
|
||||
val s = subst("bar.stringwsub")
|
||||
val v = resolveWithoutFallbacks(s, simpleObject)
|
||||
assertEquals(stringValue("hello 42 bar"), v)
|
||||
}
|
||||
|
||||
@Test
|
||||
def resolveDouble() {
|
||||
val s = subst("bar.double")
|
||||
|
Loading…
Reference in New Issue
Block a user