]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Sonar runner: refactor unit test to remove conflict with sonar analysis
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 7 Jul 2011 10:14:24 +0000 (10:14 +0000)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 7 Jul 2011 10:14:24 +0000 (10:14 +0000)
src/test/java/org/sonar/runner/MainTest.java
src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/project/sonar-project.properties
src/test/resources/org/sonar/runner/MainTest/shouldLoadCompleteConfiguration/runner/conf/sonar-runner.properties

index 2e839f917d0b402266afb40ca149d4c1c220eeba..4f22fc3d43e0d138874297bc4df58b7923299a78 100644 (file)
@@ -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"));
   }
 }
index d9ed6334adcb3655281a8453b5657988ef13980d..0d1e025e28e42ae5e27083fd592e65759cf357a0 100644 (file)
@@ -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