committed by
Phillip Webb
parent
4f60b8a968
commit
1f24feafbd
@@ -85,7 +85,7 @@ class SystemEnvironmentConfigDataResource extends ConfigDataResource {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "system envionement variable [" + this.variableName + "] content loaded using "
|
||||
return "system environment variable [" + this.variableName + "] content loaded using "
|
||||
+ ClassUtils.getShortName(this.loader.getClass());
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class SystemEnvironmentConfigDataLoaderTests {
|
||||
void loadWhenNoContentThrowsException() {
|
||||
assertThatExceptionOfType(ConfigDataResourceNotFoundException.class)
|
||||
.isThrownBy(() -> this.loader.load(this.context, createResource("VAR1")))
|
||||
.withMessage("Config data resource 'system envionement variable [VAR1] content "
|
||||
.withMessage("Config data resource 'system environment variable [VAR1] content "
|
||||
+ "loaded using PropertiesPropertySourceLoader' cannot be found");
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ class SystemEnvironmentConfigDataResourceTests {
|
||||
void toStringReturnsString() {
|
||||
SystemEnvironmentConfigDataResource resource = createResource("VAR1");
|
||||
assertThat(resource)
|
||||
.hasToString("system envionement variable [VAR1] content loaded using PropertiesPropertySourceLoader");
|
||||
.hasToString("system environment variable [VAR1] content loaded using PropertiesPropertySourceLoader");
|
||||
}
|
||||
|
||||
private SystemEnvironmentConfigDataResource createResource(String variableName) {
|
||||
|
||||
@@ -49,7 +49,7 @@ class ReactorClientHttpRequestFactoryBuilderTests
|
||||
}
|
||||
|
||||
@Test
|
||||
void withwithHttpClientFactory() {
|
||||
void withHttpClientFactory() {
|
||||
boolean[] called = new boolean[1];
|
||||
Supplier<HttpClient> httpClientFactory = () -> {
|
||||
called[0] = true;
|
||||
|
||||
@@ -48,7 +48,7 @@ class ReactorClientHttpConnectorBuilderTests
|
||||
}
|
||||
|
||||
@Test
|
||||
void withwithHttpClientFactory() {
|
||||
void withHttpClientFactory() {
|
||||
boolean[] called = new boolean[1];
|
||||
Supplier<HttpClient> httpClientFactory = () -> {
|
||||
called[0] = true;
|
||||
|
||||
Reference in New Issue
Block a user