Remove unnecessary stubbing.

This commit is contained in:
Olga Maciaszek-Sharma
2022-09-12 14:06:06 +02:00
parent f3cf13118d
commit 0d40b30f40

View File

@@ -181,7 +181,6 @@ public class RetryLoadBalancerInterceptorTests {
HttpRequest request = mock(HttpRequest.class);
when(request.getURI()).thenReturn(new URI("http://foo"));
InputStream notFoundStream = mock(InputStream.class);
when(notFoundStream.read(any(byte[].class))).thenReturn(-1);
ClientHttpResponse clientHttpResponseNotFound = new MockClientHttpResponse(notFoundStream,
HttpStatus.NOT_FOUND);
ClientHttpResponse clientHttpResponseOk = new MockClientHttpResponse(new byte[] {}, HttpStatus.OK);