aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/test/java/org/sonar/runner/MainTest.java6
-rw-r--r--src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties4
-rw-r--r--src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/test/java/org/sonar/runner/MainTest.java b/src/test/java/org/sonar/runner/MainTest.java
index 2e839f9..4f22fc3 100644
--- a/src/test/java/org/sonar/runner/MainTest.java
+++ b/src/test/java/org/sonar/runner/MainTest.java
@@ -95,8 +95,8 @@ public class MainTest {
"-D", "project.home=" + projectHome.getCanonicalPath()
});
- assertThat(props.getProperty("project.key"), is("foo"));
- assertThat(props.getProperty("sonar.host.url"), is("http://overridden/sonar"));
- assertThat(props.getProperty("sonar.jdbc.url"), is("jdbc:mysql:localhost/sonar"));
+ assertThat(props.getProperty("project.prop"), is("foo"));
+ assertThat(props.getProperty("overridden.prop"), is("project scope"));
+ assertThat(props.getProperty("global.prop"), is("jdbc:mysql:localhost/sonar"));
}
}
diff --git a/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties b/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties
index d9ed633..0d1e025 100644
--- a/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties
+++ b/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties
@@ -1,4 +1,4 @@
-project.key=foo
+project.prop=foo
# overridden property
-sonar.host.url=http://overridden/sonar \ No newline at end of file
+overridden.prop=project scope \ No newline at end of file
diff --git a/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties b/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties
index 0f6524d..7edfb99 100644
--- a/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties
+++ b/src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties
@@ -1,2 +1,2 @@
-sonar.host.url=http://localhost/sonar
-sonar.jdbc.url=jdbc:mysql:localhost/sonar
+overridden.prop=runner scope
+global.prop=jdbc:mysql:localhost/sonar