#1698 FIX for IAE "key can't be empty" in System.getProperty()

That is, assertEquals("${}", PropertyEval.eval("${}"));
... for when we load properties that include the "${}" placeholder
This commit is contained in:
rob bygrave
2019-05-16 20:26:45 +12:00
parent 1d363776ec
commit 3dd5069f5a
2 changed files with 8 additions and 0 deletions
@@ -33,6 +33,11 @@ public class PropertyEvalTest {
System.clearProperty("foo");
}
@Test
public void eval_emptyPlaceholder() {
assertEquals("${}", PropertyEval.eval("${}"));
}
@Test
public void eval_singleExpression_withDefault() {