Fix OnPropertyCondition no havingValue message
See gh-2193
This commit is contained in:
@@ -87,7 +87,7 @@ class OnPropertyCondition extends SpringBootCondition {
|
||||
+ expandNames(prefix, missingProperties) + " ");
|
||||
}
|
||||
if (!nonMatchingProperties.isEmpty()) {
|
||||
String expected = havingValue == null ? "!false" : havingValue;
|
||||
String expected = StringUtils.hasLength(havingValue) ? havingValue : "!false";
|
||||
message.append("expected '").append(expected).append("' for properties ")
|
||||
.append(expandNames(prefix, nonMatchingProperties));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user