diff --git a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigClientProperties.java b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigClientProperties.java index 87191110..eac50e30 100644 --- a/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigClientProperties.java +++ b/spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigClientProperties.java @@ -378,10 +378,10 @@ public class ConfigClientProperties { public String toString() { return "ConfigClientProperties [enabled=" + this.enabled + ", profile=" + this.profile + ", name=" + this.name + ", label=" + this.label + ", username=" + this.username + ", password=" + this.password + ", uri=" - + Arrays.toString(this.uri) + ", mediaType=" + this.mediaType + ", discovery=" + this.discovery + ", failFast=" + this.failFast - + ", token=" + this.token + ", requestConnectTimeout=" + this.requestConnectTimeout - + ", requestReadTimeout=" + this.requestReadTimeout + ", sendState=" + this.sendState + ", headers=" - + this.headers + "]"; + + Arrays.toString(this.uri) + ", mediaType=" + this.mediaType + ", discovery=" + this.discovery + + ", failFast=" + this.failFast + ", token=" + this.token + ", requestConnectTimeout=" + + this.requestConnectTimeout + ", requestReadTimeout=" + this.requestReadTimeout + ", sendState=" + + this.sendState + ", headers=" + this.headers + "]"; } /** 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 54ae88b4..3c72156c 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 @@ -95,21 +95,18 @@ public class ConfigServicePropertySourceLocatorTests { mockRequestResponseWithoutLabel(new ResponseEntity<>(body, HttpStatus.OK)); ConfigClientProperties properties = new ConfigClientProperties(this.environment); properties.setMediaType("application/json"); - ConfigServicePropertySourceLocator locator = new ConfigServicePropertySourceLocator( - properties); + ConfigServicePropertySourceLocator locator = new ConfigServicePropertySourceLocator(properties); locator.setRestTemplate(this.restTemplate); - ArgumentCaptor argumentCaptor = ArgumentCaptor - .forClass(HttpEntity.class); + ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(HttpEntity.class); assertThat(locator.locateCollection(this.environment)).isNotNull(); - Mockito.verify(this.restTemplate).exchange(anyString(), any(HttpMethod.class), - argumentCaptor.capture(), any(Class.class), anyString(), anyString()); + Mockito.verify(this.restTemplate).exchange(anyString(), any(HttpMethod.class), argumentCaptor.capture(), + any(Class.class), anyString(), anyString()); HttpEntity httpEntity = argumentCaptor.getValue(); - assertThat(httpEntity.getHeaders().getAccept()) - .containsExactly(MediaType.parseMediaType("application/json")); + assertThat(httpEntity.getHeaders().getAccept()).containsExactly(MediaType.parseMediaType("application/json")); } @Test