@Test void couldNotProcessRequest() { HttpServletResponse response = Mockito.mock(HttpServletResponse.class); when(cookieConfigProperties.getPath()).thenReturn("somePath"); ResponseEntity<OnlineBankingResponse> responseResponseEntity = responseUtils.couldNotProcessRequest(new AuthorizeResponse(), "couldNotProcessRequest", HttpStatus.BAD_REQUEST, response); assertTrue(responseResponseEntity.getStatusCode().is4xxClientError()); assertSame(HttpStatus.BAD_REQUEST, responseResponseEntity.getStatusCode()); assertFalse(Objects.requireNonNull(responseResponseEntity.getBody()).getPsuMessages().isEmpty()); }
public <T extends OnlineBankingResponse> ResponseEntity<T> couldNotProcessRequest(T authResp, String message, HttpStatus status, HttpServletResponse httpResp) { return error(authResp, status, message, httpResp); }
ResponseUtils { public <T extends OnlineBankingResponse> ResponseEntity<T> couldNotProcessRequest(T authResp, String message, HttpStatus status, HttpServletResponse httpResp) { return error(authResp, status, message, httpResp); } }
ResponseUtils { public <T extends OnlineBankingResponse> ResponseEntity<T> couldNotProcessRequest(T authResp, String message, HttpStatus status, HttpServletResponse httpResp) { return error(authResp, status, message, httpResp); }  }
ResponseUtils { public <T extends OnlineBankingResponse> ResponseEntity<T> couldNotProcessRequest(T authResp, String message, HttpStatus status, HttpServletResponse httpResp) { return error(authResp, status, message, httpResp); }  void setCookies(HttpServletResponse response, ConsentReference consentReference, String accessTokenString,
			AccessTokenTO accessTokenTO); void removeCookies(HttpServletResponse response); ResponseEntity<T> unknownCredentials(
			T resp, HttpServletResponse httpResp); ResponseEntity<T> couldNotProcessRequest(T authResp, String message,
			HttpStatus status, HttpServletResponse httpResp); @SuppressWarnings("PMD.AvoidReassigningParameters") ResponseEntity<T> redirect(String locationURI, HttpServletResponse httpResp); ResponseEntity<T> error(T authResp, HttpStatus status, String message, HttpServletResponse response); String consentCookie(String cookieString); }
ResponseUtils { public <T extends OnlineBankingResponse> ResponseEntity<T> couldNotProcessRequest(T authResp, String message, HttpStatus status, HttpServletResponse httpResp) { return error(authResp, status, message, httpResp); }  void setCookies(HttpServletResponse response, ConsentReference consentReference, String accessTokenString,
			AccessTokenTO accessTokenTO); void removeCookies(HttpServletResponse response); ResponseEntity<T> unknownCredentials(
			T resp, HttpServletResponse httpResp); ResponseEntity<T> couldNotProcessRequest(T authResp, String message,
			HttpStatus status, HttpServletResponse httpResp); @SuppressWarnings("PMD.AvoidReassigningParameters") ResponseEntity<T> redirect(String locationURI, HttpServletResponse httpResp); ResponseEntity<T> error(T authResp, HttpStatus status, String message, HttpServletResponse response); String consentCookie(String cookieString); static final String CONSENT_COOKIE_NAME; static final String ACCESS_TOKEN_COOKIE_NAME; static final String UNKNOWN_CREDENTIALS; }