aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-29 10:59:39 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-29 10:59:39 +0200
commit48fdffcfc03e6a8ce7d350a9906dc6e6bac123f5 (patch)
tree675053808b0c7788ae63a01dd34e7eb6dc9932ef /it
parent52cc88864ac99fe01ef0d473208c7686509b4aee (diff)
downloadsonarqube-48fdffcfc03e6a8ce7d350a9906dc6e6bac123f5.tar.gz
sonarqube-48fdffcfc03e6a8ce7d350a9906dc6e6bac123f5.zip
Fix IssueBulkChangeTest IT related to action plan removal
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/issue/IssueBulkChangeTest.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/it/it-tests/src/test/java/it/issue/IssueBulkChangeTest.java b/it/it-tests/src/test/java/it/issue/IssueBulkChangeTest.java
index 5a8e64968e4..b3188669728 100644
--- a/it/it-tests/src/test/java/it/issue/IssueBulkChangeTest.java
+++ b/it/it-tests/src/test/java/it/issue/IssueBulkChangeTest.java
@@ -27,13 +27,9 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.sonar.wsclient.base.HttpException;
-import org.sonar.wsclient.issue.ActionPlan;
-import org.sonar.wsclient.issue.ActionPlanClient;
import org.sonar.wsclient.issue.BulkChange;
import org.sonar.wsclient.issue.BulkChangeQuery;
import org.sonar.wsclient.issue.Issue;
-import org.sonar.wsclient.issue.NewActionPlan;
-import util.ItUtils;
import util.ProjectAnalysis;
import util.ProjectAnalysisRule;
import util.QaOnly;
@@ -99,28 +95,6 @@ public class IssueBulkChangeTest extends AbstractIssueTest {
}
@Test
- public void should_plan() {
- xooSampleLittleIssuesAnalysis.run();
-
- // Create action plan
- ActionPlan newActionPlan = adminActionPlanClient().create(
- NewActionPlan.create().name("Short term").project("sample").description("Short term issues").deadLine(ItUtils.toDate("2113-01-31")));
-
- String[] issueKeys = searchIssueKeys(BULK_EDITED_ISSUE_COUNT);
- BulkChange bulkChange = adminIssueClient().bulkChange(
- BulkChangeQuery.create()
- .issues(issueKeys)
- .actions("plan")
- .actionParameter("plan", "plan", newActionPlan.key())
- );
-
- assertThat(bulkChange.totalIssuesChanged()).isEqualTo(BULK_EDITED_ISSUE_COUNT);
- for (Issue issue : searchIssues(issueKeys)) {
- assertThat(issue.actionPlan()).isEqualTo(newActionPlan.key());
- }
- }
-
- @Test
public void should_setSeverity_add_comment_in_single_WS_call() {
xooSampleLittleIssuesAnalysis.run();
@@ -315,10 +289,6 @@ public class IssueBulkChangeTest extends AbstractIssueTest {
return getIssueKeys(searchIssues(), limit);
}
- private static ActionPlanClient adminActionPlanClient() {
- return ORCHESTRATOR.getServer().adminWsClient().actionPlanClient();
- }
-
private enum IssueToKey implements Function<Issue, String> {
INSTANCE;