File tree Expand file tree Collapse file tree
src/test/java/de/codescape/jira/plugins/scrumpoker/action Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments