From 04b6ae40d1d27fe040484c578b642af6dfe21d56 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 28 Apr 2011 21:55:41 +0400 Subject: [PATCH] SONAR-2321 Fix test for Windows --- .../plugins/cobertura/CoberturaMavenInitializerTest.java | 4 ++-- 1 file 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")); } } -- 2.39.5