diff --git a/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServerConfigDataLoaderTests.java b/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServerConfigDataLoaderTests.java index fb439239..a26f691d 100644 --- a/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServerConfigDataLoaderTests.java +++ b/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServerConfigDataLoaderTests.java @@ -721,7 +721,6 @@ public class ConfigServerConfigDataLoaderTests { headers.setContentType(MediaType.APPLICATION_JSON); when(response.getHeaders()).thenReturn(headers); when(response.getStatusCode()).thenReturn(status); - when(response.getRawStatusCode()).thenReturn(status.value()); when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes())); } diff --git a/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocatorTests.java b/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocatorTests.java index b53d80a1..077b5d98 100644 --- a/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocatorTests.java +++ b/spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigServicePropertySourceLocatorTests.java @@ -582,7 +582,6 @@ public class ConfigServicePropertySourceLocatorTests { headers.setContentType(MediaType.APPLICATION_JSON); Mockito.when(response.getHeaders()).thenReturn(headers); Mockito.when(response.getStatusCode()).thenReturn(status); - Mockito.when(response.getRawStatusCode()).thenReturn(status.value()); Mockito.when(response.getBody()).thenReturn(new ByteArrayInputStream("{}".getBytes())); }