From b668784ec1daca934339326aa0c6c8b383d1152b Mon Sep 17 00:00:00 2001 From: spencergibb Date: Tue, 6 Aug 2024 16:01:29 -0400 Subject: [PATCH] Fix compile errors --- .../cloud/config/client/ConfigServerConfigDataLoaderTests.java | 1 - .../config/client/ConfigServicePropertySourceLocatorTests.java | 1 - 2 files changed, 2 deletions(-) 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())); }