Polish
This commit is contained in:
@@ -70,8 +70,7 @@ public class PropertySourcesPropertyValues implements PropertyValues {
|
||||
* Create a new PropertyValues from the given PropertySources that will optionally
|
||||
* resolve placeholders.
|
||||
* @param propertySources a PropertySources instance
|
||||
* @param resolvePlaceholders {@code true} if placeholders should be resolved,
|
||||
* otherwise {@code false}
|
||||
* @param resolvePlaceholders {@code true} if placeholders should be resolved.
|
||||
* @since 1.5.2
|
||||
*/
|
||||
public PropertySourcesPropertyValues(PropertySources propertySources,
|
||||
|
||||
@@ -529,6 +529,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
|
||||
public void setFoo(String foo) {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
@@ -58,7 +58,8 @@ public class BindFailureAnalyzerTests {
|
||||
|
||||
@Test
|
||||
public void bindExceptionWithFieldErrorsDueToValidationFailure() {
|
||||
FailureAnalysis analysis = performAnalysis(FieldValidationFailureConfiguration.class);
|
||||
FailureAnalysis analysis = performAnalysis(
|
||||
FieldValidationFailureConfiguration.class);
|
||||
assertThat(analysis.getDescription())
|
||||
.contains(failure("test.foo.foo", "null", "may not be null"));
|
||||
assertThat(analysis.getDescription())
|
||||
@@ -69,7 +70,8 @@ public class BindFailureAnalyzerTests {
|
||||
|
||||
@Test
|
||||
public void bindExceptionWithObjectErrorsDueToValidationFailure() throws Exception {
|
||||
FailureAnalysis analysis = performAnalysis(ObjectValidationFailureConfiguration.class);
|
||||
FailureAnalysis analysis = performAnalysis(
|
||||
ObjectValidationFailureConfiguration.class);
|
||||
assertThat(analysis.getDescription())
|
||||
.contains("Reason: This object could not be bound.");
|
||||
}
|
||||
@@ -171,6 +173,7 @@ public class BindFailureAnalyzerTests {
|
||||
public boolean supports(Class<?> clazz) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user