aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-31 16:27:21 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-31 16:55:01 +0200
commita81d697437999945c1acbd8117bf01b94906941b (patch)
tree889f02747ae111af7d01133a54343aadda422099 /sonar-scanner-engine
parent0dd3ac65fe67516316d153a4ce950a74fd1aa0e0 (diff)
downloadsonarqube-a81d697437999945c1acbd8117bf01b94906941b.tar.gz
sonarqube-a81d697437999945c1acbd8117bf01b94906941b.zip
SONAR-6717 Drop issue.Action API
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/tasks/TasksMediumTest.java22
1 files changed, 1 insertions, 21 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/tasks/TasksMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/tasks/TasksMediumTest.java
index 766e9371898..0918a21db03 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/tasks/TasksMediumTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/mediumtest/tasks/TasksMediumTest.java
@@ -28,7 +28,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.sonar.api.SonarPlugin;
-import org.sonar.api.issue.action.Actions;
import org.sonar.api.task.Task;
import org.sonar.api.task.TaskDefinition;
import org.sonar.api.utils.MessageException;
@@ -106,18 +105,6 @@ public class TasksMediumTest {
.start();
}
- private void startServer(Integer responseStatus, String responseData) throws Exception {
- server = new MockHttpServer();
- server.start();
-
- if (responseStatus != null) {
- server.setMockResponseStatus(responseStatus);
- }
- if (responseData != null) {
- server.setMockResponseData(responseData);
- }
- }
-
private static class FakeTaskPlugin extends SonarPlugin {
@Override
@@ -142,17 +129,10 @@ public class TasksMediumTest {
private static class BrokenTask implements Task {
public static final TaskDefinition DEF = TaskDefinition.builder().key("broken").description("Broken description").taskClass(BrokenTask.class).build();
- private final Actions serverSideComponent;
-
- public BrokenTask(Actions serverSideComponent) {
- this.serverSideComponent = serverSideComponent;
- }
@Override
public void execute() {
- System.out.println(serverSideComponent.list());
- ;
-
+ // do nothing
}
}