]> source.dussan.org Git - sonarqube.git/commitdiff
Fix test Windows
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 16 Mar 2016 08:50:01 +0000 (09:50 +0100)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 16 Mar 2016 08:50:01 +0000 (09:50 +0100)
sonar-batch/src/test/java/org/sonar/batch/mediumtest/fs/FileSystemMediumTest.java

index bb669ceec00bf1f725d982063f09358377f5dadf..dcb32c1030e3daa5091903d850b5a0e374f646ee 100644 (file)
@@ -246,11 +246,15 @@ public class FileSystemMediumTest {
       File projectDir = new File("src/test/resources/mediumtest/xoo/sample");
       TaskResult result = tester
         .newScanTask(new File(projectDir, "sonar-project.properties"))
-        .property("sonar.sources", "SRC")
+        .property("sonar.sources", "XOURCES")
+        .property("sonar.tests", "TESTX")
         .start();
 
       assertThat(result.inputFiles()).hasSize(3);
-      assertThat(result.inputFiles()).extractingResultOf("relativePath").startsWith("src");
+      assertThat(result.inputFiles()).extractingResultOf("relativePath").containsOnly(
+        "xources/hello/HelloJava.xoo",
+        "xources/hello/helloscala.xoo",
+        "testx/ClassOneTest.xoo");
     }
   }