diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-28 21:55:41 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-04-28 21:55:41 +0400 |
commit | 04b6ae40d1d27fe040484c578b642af6dfe21d56 (patch) | |
tree | 351009856be8e5d174d79e5e8c23ac1ca28e4394 /plugins/sonar-cobertura-plugin/src | |
parent | 4b45d52cbc9529c755017c970090ee6c13872efb (diff) | |
download | sonarqube-04b6ae40d1d27fe040484c578b642af6dfe21d56.tar.gz sonarqube-04b6ae40d1d27fe040484c578b642af6dfe21d56.zip |
SONAR-2321 Fix test for Windows
Diffstat (limited to 'plugins/sonar-cobertura-plugin/src')
-rw-r--r-- | plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/CoberturaMavenInitializerTest.java | 4 |
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")); } } |