You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/05 15:26:53 UTC

[commons-configuration] branch master updated: Tests an interpolation that consists of a single undefined variable only with and without a default value.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new 03e1def  Tests an interpolation that consists of a single undefined variable only with and without a default value.
03e1def is described below

commit 03e1def2d90850d97a68ba76d8cf82f604b5baab
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Aug 5 11:26:49 2019 -0400

    Tests an interpolation that consists of a single undefined variable only
    with and without a default value.
---
 .../commons/configuration2/interpol/TestConfigurationInterpolator.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/java/org/apache/commons/configuration2/interpol/TestConfigurationInterpolator.java b/src/test/java/org/apache/commons/configuration2/interpol/TestConfigurationInterpolator.java
index 24fca68..be53c03 100644
--- a/src/test/java/org/apache/commons/configuration2/interpol/TestConfigurationInterpolator.java
+++ b/src/test/java/org/apache/commons/configuration2/interpol/TestConfigurationInterpolator.java
@@ -364,6 +364,8 @@ public class TestConfigurationInterpolator
                 interpolator.interpolate("${I_am_not_defined}"));
         assertEquals("Wrong result", "42",
                 interpolator.interpolate("${I_am_not_defined:-42}"));
+        assertEquals("Wrong result", "",
+                interpolator.interpolate("${I_am_not_defined:-}"));
     }
 
     /**