summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cobertura-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-04-07 01:02:25 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-04-12 08:48:51 +0400
commitd6693ffe167bb5d92aaddbd28ff3780a7494f54d (patch)
tree83304225b7fb827ff3302e28722f8abd09440916 /plugins/sonar-cobertura-plugin
parent07625d01d50a80c360156869b375f8672b3a280d (diff)
downloadsonarqube-d6693ffe167bb5d92aaddbd28ff3780a7494f54d.tar.gz
sonarqube-d6693ffe167bb5d92aaddbd28ff3780a7494f54d.zip
Improve ProjectFileSystem
* Use ProjectFileSystem instead of DefaultProjectFileSystem in tests * Use InputFileUtils in DefaultProjectFileSystem * Add MavenProjectFileSystem
Diffstat (limited to 'plugins/sonar-cobertura-plugin')
-rw-r--r--plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/api/CoberturaUtilsTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/api/CoberturaUtilsTest.java b/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/api/CoberturaUtilsTest.java
index 59192a3a258..90a288e058f 100644
--- a/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/api/CoberturaUtilsTest.java
+++ b/plugins/sonar-cobertura-plugin/src/test/java/org/sonar/plugins/cobertura/api/CoberturaUtilsTest.java
@@ -27,7 +27,7 @@ import static org.mockito.Mockito.when;
import org.apache.maven.project.MavenProject;
import org.junit.Test;
import org.sonar.api.CoreProperties;
-import org.sonar.api.resources.DefaultProjectFileSystem;
+import org.sonar.api.resources.ProjectFileSystem;
import org.sonar.api.resources.Project;
import org.sonar.api.test.MavenTestUtils;
@@ -37,7 +37,7 @@ import java.net.URISyntaxException;
public class CoberturaUtilsTest {
@Test
public void shouldGetReportPathFromProperty() throws URISyntaxException {
- DefaultProjectFileSystem fileSystem = mock(DefaultProjectFileSystem.class);
+ ProjectFileSystem fileSystem = mock(ProjectFileSystem.class);
when(fileSystem.resolvePath("foo")).thenReturn(getCoverageReport());
Project project = mock(Project.class);
@@ -53,7 +53,7 @@ public class CoberturaUtilsTest {
public void shouldGetReportPathFromPom() {
MavenProject pom = MavenTestUtils.loadPom("/org/sonar/plugins/cobertura/CoberturaSensorTest/shouldGetReportPathFromPom/pom.xml");
- DefaultProjectFileSystem fileSystem = mock(DefaultProjectFileSystem.class);
+ ProjectFileSystem fileSystem = mock(ProjectFileSystem.class);
Project project = mock(Project.class);
when(project.getPom()).thenReturn(pom);