aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cobertura-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-cobertura-plugin/src')
-rw-r--r--plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java b/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java
index fa6ef266f75..01f3fa52479 100644
--- a/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java
+++ b/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java
@@ -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"));
}
}