aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-server-common/src')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/issue/workflow/IssueWorkflow.java2
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/issue/workflow/IssueWorkflowTest.java4
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);