Skip to content

Commit 6c6f6bf

Browse files
committed
test: access static member directly
1 parent 8515d4d commit 6c6f6bf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ category: Administration
1212
### [Unreleased]
1313

1414
* feat: ensure compatibility with Jira 11.3.1
15+
* test: access static member directly
1516

1617
### [25.12.1] - 2025-12-12
1718

src/test/java/de/codescape/jira/plugins/scrumpoker/action/ScrumPokerErrorLogActionTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void shouldExposeTheErrorList() {
5252

5353
@Test
5454
public void shouldAlwaysReturnThePageForViewing() {
55-
assertThat(action.doDefault(), is(equalTo(action.SUCCESS)));
55+
assertThat(action.doDefault(), is(equalTo(ScrumPokerErrorLogAction.SUCCESS)));
5656
}
5757

5858
/* tests for doExecute() */
@@ -61,15 +61,15 @@ public void shouldAlwaysReturnThePageForViewing() {
6161
public void shouldEmptyTheErrorLogWhenRequested() {
6262
when(httpServletVariables.getHttpRequest()).thenReturn(httpServletRequest);
6363
when(httpServletRequest.getParameterValues(ScrumPokerErrorLogAction.Parameters.ACTION)).thenReturn(new String[]{"empty"});
64-
assertThat(action.doExecute(), is(equalTo(action.SUCCESS)));
64+
assertThat(action.doExecute(), is(equalTo(ScrumPokerErrorLogAction.SUCCESS)));
6565
verify(errorLogService, times(1)).emptyErrorLog();
6666
}
6767

6868
@Test
6969
public void shouldNotEmptyTheErrorWhenNotRequested() {
7070
when(httpServletVariables.getHttpRequest()).thenReturn(httpServletRequest);
7171
when(httpServletRequest.getParameter(ScrumPokerErrorLogAction.Parameters.ACTION)).thenReturn(null);
72-
assertThat(action.doExecute(), is(equalTo(action.SUCCESS)));
72+
assertThat(action.doExecute(), is(equalTo(ScrumPokerErrorLogAction.SUCCESS)));
7373
verify(errorLogService, never()).emptyErrorLog();
7474
}
7575

0 commit comments

Comments
 (0)