diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-08-13 12:09:08 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-21 20:21:04 +0200 |
commit | a48c1dadaf6a81549917bdca8de95706b0941a61 (patch) | |
tree | 18eb570fe79719ee5cb8dabb6fb4bcdc46da02bc /server/sonar-server-common/src | |
parent | 736c4964ccfff0c5a94098804f0d53db4c8da4bb (diff) | |
download | sonarqube-a48c1dadaf6a81549917bdca8de95706b0941a61.tar.gz sonarqube-a48c1dadaf6a81549917bdca8de95706b0941a61.zip |
SONAR-8368 rename doTransition to doManualTransition
Diffstat (limited to 'server/sonar-server-common/src')
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/issue/workflow/IssueWorkflow.java b/server/sonar-server-common/src/main/java/org/sonar/server/issue/workflow/IssueWorkflow.java index a56d991b9fc..cf97490ad55 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/issue/workflow/IssueWorkflow.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/issue/workflow/IssueWorkflow.java @@ -252,7 +252,7 @@ public class IssueWorkflow implements Startable { // nothing to do } - public boolean doTransition(DefaultIssue issue, String transitionKey, IssueChangeContext issueChangeContext) { + public boolean doManualTransition(DefaultIssue issue, String transitionKey, IssueChangeContext issueChangeContext) { Transition transition = stateOf(issue).transition(transitionKey); if (!transition.automatic()) { functionExecutor.execute(transition.functions(), issue, issueChangeContext); diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/issue/workflow/IssueWorkflowTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/issue/workflow/IssueWorkflowTest.java index 0580233ca31..bc508bd450d 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/issue/workflow/IssueWorkflowTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/issue/workflow/IssueWorkflowTest.java @@ -228,7 +228,7 @@ public class IssueWorkflowTest { .setAssigneeUuid("morgan"); workflow.start(); - workflow.doTransition(issue, DefaultTransitions.FALSE_POSITIVE, IssueChangeContext.createScan(new Date())); + workflow.doManualTransition(issue, DefaultTransitions.FALSE_POSITIVE, IssueChangeContext.createScan(new Date())); assertThat(issue.resolution()).isEqualTo(RESOLUTION_FALSE_POSITIVE); assertThat(issue.status()).isEqualTo(STATUS_RESOLVED); @@ -246,7 +246,7 @@ public class IssueWorkflowTest { .setAssigneeUuid("morgan"); workflow.start(); - workflow.doTransition(issue, DefaultTransitions.WONT_FIX, IssueChangeContext.createScan(new Date())); + workflow.doManualTransition(issue, DefaultTransitions.WONT_FIX, IssueChangeContext.createScan(new Date())); assertThat(issue.resolution()).isEqualTo(RESOLUTION_WONT_FIX); assertThat(issue.status()).isEqualTo(STATUS_RESOLVED); |