Update resteasy to 4.5.9.Final

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Rene Pfeuffer
2023-03-10 08:29:34 +01:00
committed by SCM-Manager
parent 56265be9a2
commit f3027ba9f8
12 changed files with 58 additions and 53 deletions

View File

@@ -48,6 +48,7 @@ import java.io.IOException;
import java.net.URISyntaxException;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.lenient;
import static org.mockito.Mockito.when;
@ExtendWith(MockitoExtension.class)
@@ -98,7 +99,7 @@ class FailureExceptionMapperTest {
}
private MockHttpResponse dispatch(MockHttpRequest request) {
when(this.request.getMethod()).thenReturn(request.getHttpMethod());
lenient().when(this.request.getMethod()).thenReturn(request.getHttpMethod());
MockHttpResponse response = new MockHttpResponse();
dispatcher.invoke(request, response);
return response;