]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2321 Fix test for Windows
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Apr 2011 17:55:41 +0000 (21:55 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Apr 2011 17:55:41 +0000 (21:55 +0400)
plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java

index fa6ef266f75b580d07e61a5bc43c9b95a6f93996..01f3fa52479dec8a2ef4424a8c841491952a3c54 100644 (file)
@@ -93,11 +93,11 @@ public class CoberturaMavenInitializerTest {
   @Test
   public void shouldSetDefaultReportPath() {
     ProjectFileSystem pfs = mock(ProjectFileSystem.class);
-    when(pfs.getReportOutputDir()).thenReturn(new File("target/sites"));
+    when(pfs.getReportOutputDir()).thenReturn(new File("reportOutputDir"));
     Configuration configuration = mock(Configuration.class);
     when(project.getConfiguration()).thenReturn(configuration);
     when(project.getFileSystem()).thenReturn(pfs);
     initializer.execute(project);
-    verify(configuration).setProperty(eq(CoreProperties.COBERTURA_REPORT_PATH_PROPERTY), eq("target/sites/cobertura/coverage.xml"));
+    verify(configuration).setProperty(eq(CoreProperties.COBERTURA_REPORT_PATH_PROPERTY), eq("reportOutputDir/cobertura/coverage.xml"));
   }
 }