diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-06-01 13:23:23 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-06-01 13:23:23 +0200 |
commit | df86e9c9059cfa03065c435dbaa55232cf0ccf89 (patch) | |
tree | 3e8d6318131c063f0331d177c01340dbb503d97e /sonar-batch/src/test/java/org/sonar | |
parent | 1b4f9761cc393a70aa7c8557f0a60ee217b81ca0 (diff) | |
download | sonarqube-df86e9c9059cfa03065c435dbaa55232cf0ccf89.tar.gz sonarqube-df86e9c9059cfa03065c435dbaa55232cf0ccf89.zip |
Use ImmutableProjectReactor when possible
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java b/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java index dcb0438619f..8d2bdf973c7 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/report/ReportPublisherTest.java @@ -24,13 +24,13 @@ import org.junit.Test; import org.slf4j.Logger; import org.sonar.api.CoreProperties; import org.sonar.api.batch.bootstrap.ProjectDefinition; -import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.api.config.Settings; import org.sonar.api.platform.Server; import org.sonar.api.utils.TempFolder; import org.sonar.batch.bootstrap.DefaultAnalysisMode; import org.sonar.batch.bootstrap.ServerClient; import org.sonar.batch.index.BatchComponentCache; +import org.sonar.batch.scan.ImmutableProjectReactor; import org.sonar.jpa.test.AbstractDbUnitTestCase; import static org.mockito.Mockito.mock; @@ -43,12 +43,12 @@ public class ReportPublisherTest extends AbstractDbUnitTestCase { BatchComponentCache resourceCache = mock(BatchComponentCache.class); - private ProjectReactor reactor; + private ImmutableProjectReactor reactor; @Before public void setUp() { mode = mock(DefaultAnalysisMode.class); - reactor = mock(ProjectReactor.class); + reactor = mock(ImmutableProjectReactor.class); when(reactor.getRoot()).thenReturn(ProjectDefinition.create().setKey("struts")); } |