Polish "Test that source information is resolved from super class"
See gh-45382
This commit is contained in:
@@ -84,7 +84,7 @@ class PropertyDescriptorResolverTests {
|
||||
assertThat(itemMetadataList).map(ItemMetadata::getDefaultValue)
|
||||
.containsExactly("three", "two", "one");
|
||||
assertThat(itemMetadataList).map(ItemMetadata::getDescription)
|
||||
.containsExactly("I'm third", "I'm second", "I'm first");
|
||||
.containsExactly("Concrete property.", "Parent property.", "Grandparent property.");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
|
||||
public class HierarchicalProperties extends HierarchicalPropertiesParent {
|
||||
|
||||
/**
|
||||
* I'm third
|
||||
* Concrete property.
|
||||
*/
|
||||
private String third = "three";
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ package org.springframework.boot.configurationsample.simple;
|
||||
public abstract class HierarchicalPropertiesGrandparent {
|
||||
|
||||
/**
|
||||
* I'm first
|
||||
* Grandparent property.
|
||||
*/
|
||||
private String first = "one";
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ package org.springframework.boot.configurationsample.simple;
|
||||
public abstract class HierarchicalPropertiesParent extends HierarchicalPropertiesGrandparent {
|
||||
|
||||
/**
|
||||
* I'm second
|
||||
* Parent property.
|
||||
*/
|
||||
private String second = "two";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user