Polish "Test that source information is resolved from super class"

See gh-45382
This commit is contained in:
Stéphane Nicoll
2025-05-07 10:36:56 +02:00
parent 91715a8c7d
commit 88107273f3
4 changed files with 4 additions and 4 deletions

View File

@@ -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.");
});
}

View File

@@ -27,7 +27,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
public class HierarchicalProperties extends HierarchicalPropertiesParent {
/**
* I'm third
* Concrete property.
*/
private String third = "three";

View File

@@ -24,7 +24,7 @@ package org.springframework.boot.configurationsample.simple;
public abstract class HierarchicalPropertiesGrandparent {
/**
* I'm first
* Grandparent property.
*/
private String first = "one";

View File

@@ -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";