Skip to content

Commit

Permalink
Fix test mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Nov 28, 2023
1 parent cd29883 commit bd7d324
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void testWrongResponseType() {
@Test
void testGetClientStatusCode() throws Exception {
ClientResponse mockResponse = mock(ClientResponse.class);
doReturn(HttpStatus.IM_USED).when(mockResponse).statusCode();
doReturn(226).when(mockResponse).rawStatusCode();
assertThat(SpringWebVersionUtils.getClientStatusCode(mockResponse)).isEqualTo(226);
}
}

0 comments on commit bd7d324

Please sign in to comment.