import org.sonar.api.server.ws.WebService;
import org.sonar.server.computation.AnalysisReportQueue;
import org.sonar.server.computation.AnalysisReportTaskLauncher;
-import org.sonar.server.computation.ComputationService;
public class UploadReportAction implements RequestHandler {
static final String PARAM_SNAPSHOT = "snapshot";
private final AnalysisReportQueue analysisReportQueue;
- private final ComputationService computationService;
private final AnalysisReportTaskLauncher analysisTaskLauncher;
- public UploadReportAction(AnalysisReportQueue analysisReportQueue, ComputationService computationService, AnalysisReportTaskLauncher analysisTaskLauncher) {
+ public UploadReportAction(AnalysisReportQueue analysisReportQueue, AnalysisReportTaskLauncher analysisTaskLauncher) {
this.analysisReportQueue = analysisReportQueue;
- this.computationService = computationService;
this.analysisTaskLauncher = analysisTaskLauncher;
}
import org.sonar.core.properties.PropertiesDao;
import org.sonar.server.computation.AnalysisReportQueue;
import org.sonar.server.computation.AnalysisReportTaskLauncher;
-import org.sonar.server.computation.ComputationService;
import org.sonar.server.db.DbClient;
import org.sonar.server.qualityprofile.QProfileFactory;
import org.sonar.server.qualityprofile.QProfileLoader;
new GlobalReferentialsAction(mock(DbClient.class), mock(PropertiesDao.class)),
new ProjectReferentialsAction(mock(DbClient.class), mock(PropertiesDao.class), mock(QProfileFactory.class), mock(QProfileLoader.class), mock(RuleService.class),
mock(Languages.class)),
- new UploadReportAction(mock(AnalysisReportQueue.class), mock(ComputationService.class), mock(AnalysisReportTaskLauncher.class))));
+ new UploadReportAction(mock(AnalysisReportQueue.class), mock(AnalysisReportTaskLauncher.class))));
}
@Test
analysisTaskLauncher = mock(AnalysisReportTaskLauncher.class);
queue = mock(AnalysisReportQueue.class);
- sut = new UploadReportAction(queue, computationService, analysisTaskLauncher);
+ sut = new UploadReportAction(queue, analysisTaskLauncher);
}
@Test