.functions(new SetResolution(null))
.build())
.transition(Transition.builder(DefaultTransitions.UNCONFIRM)
- .from(Issue.STATUS_CONFIRMED).to(Issue.STATUS_OPEN)
+ .from(Issue.STATUS_CONFIRMED).to(Issue.STATUS_REOPENED)
.functions(new SetResolution(null))
.build())
.transition(Transition.builder(DefaultTransitions.RESOLVE)
assertThat(issue.status()).isEqualTo("CONFIRMED");
assertThat(workflow.outTransitions(issue)).containsOnly(
- Transition.create("unconfirm", "CONFIRMED", "OPEN"),
+ Transition.create("unconfirm", "CONFIRMED", "REOPENED"),
Transition.create("resolve", "CONFIRMED", "RESOLVED")
);
// unconfirm
workflow.doTransition(issue, "unconfirm", mock(IssueChangeContext.class));
assertThat(issue.resolution()).isNull();
- assertThat(issue.status()).isEqualTo("OPEN");
+ assertThat(issue.status()).isEqualTo("REOPENED");
}
@Test