.requiredProjectPermission(UserRole.ISSUE_ADMIN)
.build())
- // resolve as muted
- .transition(Transition.builder(DefaultTransitions.MUTE)
+ // resolve as won't fix
+ .transition(Transition.builder(DefaultTransitions.WONT_FIX)
.from(Issue.STATUS_OPEN).to(Issue.STATUS_RESOLVED)
- .functions(new SetResolution(Issue.RESOLUTION_MUTED), SetAssignee.UNASSIGN)
+ .functions(new SetResolution(Issue.RESOLUTION_WONT_FIX), SetAssignee.UNASSIGN)
.requiredProjectPermission(UserRole.ISSUE_ADMIN)
.build())
- .transition(Transition.builder(DefaultTransitions.MUTE)
+ .transition(Transition.builder(DefaultTransitions.WONT_FIX)
.from(Issue.STATUS_REOPENED).to(Issue.STATUS_RESOLVED)
- .functions(new SetResolution(Issue.RESOLUTION_MUTED), SetAssignee.UNASSIGN)
+ .functions(new SetResolution(Issue.RESOLUTION_WONT_FIX), SetAssignee.UNASSIGN)
.requiredProjectPermission(UserRole.ISSUE_ADMIN)
.build())
- .transition(Transition.builder(DefaultTransitions.MUTE)
+ .transition(Transition.builder(DefaultTransitions.WONT_FIX)
.from(Issue.STATUS_CONFIRMED).to(Issue.STATUS_RESOLVED)
- .functions(new SetResolution(Issue.RESOLUTION_MUTED), SetAssignee.UNASSIGN)
+ .functions(new SetResolution(Issue.RESOLUTION_WONT_FIX), SetAssignee.UNASSIGN)
.requiredProjectPermission(UserRole.ISSUE_ADMIN)
.build()
);
DefaultIssue issue = new DefaultIssue().setStatus(Issue.STATUS_OPEN);
List<Transition> transitions = workflow.outTransitions(issue);
- assertThat(keys(transitions)).containsOnly("confirm", "falsepositive", "resolve", "mute");
+ assertThat(keys(transitions)).containsOnly("confirm", "falsepositive", "resolve", "wontfix");
}
@Test
DefaultIssue issue = new DefaultIssue().setStatus(Issue.STATUS_CONFIRMED);
List<Transition> transitions = workflow.outTransitions(issue);
- assertThat(keys(transitions)).containsOnly("unconfirm", "falsepositive", "resolve", "mute");
+ assertThat(keys(transitions)).containsOnly("unconfirm", "falsepositive", "resolve", "wontfix");
}
@Test
DefaultIssue issue = new DefaultIssue().setStatus(Issue.STATUS_REOPENED);
List<Transition> transitions = workflow.outTransitions(issue);
- assertThat(keys(transitions)).containsOnly("confirm", "mute", "resolve", "falsepositive", "mute");
+ assertThat(keys(transitions)).containsOnly("confirm", "resolve", "falsepositive", "wontfix");
}
@Test
}
@Test
- public void mute() throws Exception {
+ public void wont_fix() throws Exception {
DefaultIssue issue = new DefaultIssue()
.setKey("ABCDE")
.setStatus(Issue.STATUS_OPEN)
.setAssignee("morgan");
workflow.start();
- workflow.doTransition(issue, DefaultTransitions.MUTE, IssueChangeContext.createScan(new Date()));
+ workflow.doTransition(issue, DefaultTransitions.WONT_FIX, IssueChangeContext.createScan(new Date()));
- assertThat(issue.resolution()).isEqualTo(Issue.RESOLUTION_MUTED);
+ assertThat(issue.resolution()).isEqualTo(Issue.RESOLUTION_WONT_FIX);
assertThat(issue.status()).isEqualTo(Issue.STATUS_RESOLVED);
// should remove assignee
Transition.create("confirm", "OPEN", "CONFIRMED"),
Transition.create("resolve", "OPEN", "RESOLVED"),
Transition.create("falsepositive", "OPEN", "RESOLVED"),
- Transition.create("mute", "OPEN", "RESOLVED")
+ Transition.create("wontfix", "OPEN", "RESOLVED")
);
workflow.doTransition(issue, "resolve", mock(IssueChangeContext.class));
Transition.create("confirm", "OPEN", "CONFIRMED"),
Transition.create("resolve", "OPEN", "RESOLVED"),
Transition.create("falsepositive", "OPEN", "RESOLVED"),
- Transition.create("mute", "OPEN", "RESOLVED")
+ Transition.create("wontfix", "OPEN", "RESOLVED")
);
workflow.doTransition(issue, "confirm", mock(IssueChangeContext.class));
Transition.create("unconfirm", "CONFIRMED", "REOPENED"),
Transition.create("resolve", "CONFIRMED", "RESOLVED"),
Transition.create("falsepositive", "CONFIRMED", "RESOLVED"),
- Transition.create("mute", "CONFIRMED", "RESOLVED")
+ Transition.create("wontfix", "CONFIRMED", "RESOLVED")
);
// keep confirmed and unresolved