From e77dce4b8225466ec84da17df70d00ade58d7ebd Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 10 May 2017 10:14:30 +0200 Subject: SQSCANNER-40 Stop supporting $foo syntax --- src/test/java/org/sonarsource/scanner/cli/PropertyResolverTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/org/sonarsource/scanner/cli/PropertyResolverTest.java b/src/test/java/org/sonarsource/scanner/cli/PropertyResolverTest.java index 5391671..c0b3bd2 100644 --- a/src/test/java/org/sonarsource/scanner/cli/PropertyResolverTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/PropertyResolverTest.java @@ -104,13 +104,13 @@ public class PropertyResolverTest { assertThat(resolved.get("B")).isEqualTo("value b"); assertThat(resolved.get("C")).isEqualTo("${A value b}"); } - + @Test public void missing_var() { Map env = new HashMap<>(); Properties map = new Properties(); - map.put("A", "/path/$missing var/"); - + map.put("A", "/path/${missing} var/"); + PropertyResolver resolver = new PropertyResolver(map, env); Properties resolved = resolver.resolve(); assertThat(resolved.get("A")).isEqualTo("/path/ var/"); -- cgit v1.2.3