aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-01-07 21:33:46 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-01-07 21:59:56 +0100
commitfa34983b28926de6f1fee2794195401a81b73b3f (patch)
tree7e5c67261d04c0aa8db63b5158bf9c62ce774dfa /sonar-batch/src/test
parent8338c86d2fc5d50f2058d1fc00b536c821c263c8 (diff)
downloadsonarqube-fa34983b28926de6f1fee2794195401a81b73b3f.tar.gz
sonarqube-fa34983b28926de6f1fee2794195401a81b73b3f.zip
SONAR-6014 Fix issue when saving dependencies
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/design/MavenDependenciesSensorTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/design/MavenDependenciesSensorTest.java b/sonar-batch/src/test/java/org/sonar/batch/design/MavenDependenciesSensorTest.java
index 504b82981a0..b05067227d9 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/design/MavenDependenciesSensorTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/design/MavenDependenciesSensorTest.java
@@ -29,6 +29,7 @@ import org.sonar.api.config.Settings;
import org.sonar.api.design.Dependency;
import org.sonar.api.resources.Library;
import org.sonar.api.resources.Project;
+import org.sonar.batch.index.ResourcePersister;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
@@ -47,7 +48,7 @@ public class MavenDependenciesSensorTest {
public void prepare() {
settings = new Settings();
sonarIndex = mock(SonarIndex.class);
- sensor = new MavenDependenciesSensor(settings, sonarIndex);
+ sensor = new MavenDependenciesSensor(settings, sonarIndex, mock(ResourcePersister.class));
sensorContext = mock(SensorContext.class);
when(sensorContext.getResource(any(Library.class))).thenAnswer(new Answer<Library>() {
public Library answer(InvocationOnMock invocation) throws Throwable {