summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-27 14:54:43 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-11-27 14:54:43 +0100
commit8079cb6581edcc94199afd6f109420cdc6401c24 (patch)
treeb3505fe3e92e39c13c5f75e1b6f9d7bb530cfc0d /sonar-batch
parentc39dfe06349bca1326703ef4e4b09e74e041921a (diff)
downloadsonarqube-8079cb6581edcc94199afd6f109420cdc6401c24.tar.gz
sonarqube-8079cb6581edcc94199afd6f109420cdc6401c24.zip
SONAR-4893 Update technical debt pyramid widget to use new technical debt model
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/scan/ProjectScanContainer.java4
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProvider.java4
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProviderTest.java4
3 files changed, 6 insertions, 6 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectScanContainer.java b/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectScanContainer.java
index 3a5b85b983c..3e27654af56 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectScanContainer.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/scan/ProjectScanContainer.java
@@ -53,7 +53,7 @@ import org.sonar.core.issue.workflow.FunctionExecutor;
import org.sonar.core.issue.workflow.IssueWorkflow;
import org.sonar.core.notification.DefaultNotificationManager;
import org.sonar.core.technicaldebt.TechnicalDebtConverter;
-import org.sonar.core.technicaldebt.TechnicalDebtModelFinder;
+import org.sonar.core.technicaldebt.TechnicalDebtFinder;
import org.sonar.core.test.TestPlanBuilder;
import org.sonar.core.test.TestPlanPerspectiveLoader;
import org.sonar.core.test.TestableBuilder;
@@ -148,7 +148,7 @@ public class ProjectScanContainer extends ComponentContainer {
SymbolizableBuilder.class,
// technical debt
- TechnicalDebtModelFinder.class,
+ TechnicalDebtFinder.class,
TechnicalDebtConverter.class,
new TechnicalDebtModelProvider(),
diff --git a/sonar-batch/src/main/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProvider.java b/sonar-batch/src/main/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProvider.java
index 17e477d4307..1bb8e0642e2 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProvider.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProvider.java
@@ -24,8 +24,8 @@ import org.picocontainer.injectors.ProviderAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.utils.TimeProfiler;
+import org.sonar.core.technicaldebt.TechnicalDebtFinder;
import org.sonar.core.technicaldebt.TechnicalDebtModel;
-import org.sonar.core.technicaldebt.TechnicalDebtModelFinder;
public class TechnicalDebtModelProvider extends ProviderAdapter {
@@ -33,7 +33,7 @@ public class TechnicalDebtModelProvider extends ProviderAdapter {
private TechnicalDebtModel model;
- public TechnicalDebtModel provide(TechnicalDebtModelFinder modelFinder) {
+ public TechnicalDebtModel provide(TechnicalDebtFinder modelFinder) {
if (model == null) {
TimeProfiler profiler = new TimeProfiler(LOG).start("Loading technical debt model");
model = modelFinder.findAll();
diff --git a/sonar-batch/src/test/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProviderTest.java b/sonar-batch/src/test/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProviderTest.java
index 53edb2aa3fe..b632b32fb4d 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProviderTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/technicaldebt/TechnicalDebtModelProviderTest.java
@@ -24,8 +24,8 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
+import org.sonar.core.technicaldebt.TechnicalDebtFinder;
import org.sonar.core.technicaldebt.TechnicalDebtModel;
-import org.sonar.core.technicaldebt.TechnicalDebtModelFinder;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Mockito.*;
@@ -34,7 +34,7 @@ import static org.mockito.Mockito.*;
public class TechnicalDebtModelProviderTest {
@Mock
- TechnicalDebtModelFinder modelFinder;
+ TechnicalDebtFinder modelFinder;
@Test
public void load_model(){