Revert "Merge pull request #32876 from quaff"

This reverts commit 3b2a4da023, reversing
changes made to 181b68088a.

See gh-32876
This commit is contained in:
Stéphane Nicoll
2024-05-23 13:13:02 +02:00
parent d8dcd3af0b
commit 94348d9d41
2 changed files with 3 additions and 16 deletions

View File

@@ -300,19 +300,6 @@ class PropertySourcesPropertyResolverTests {
.withMessageContaining("Circular");
}
@Test
void resolveNestedPlaceholdersIfValueIsCharSequence() {
MutablePropertySources ps = new MutablePropertySources();
ps.addFirst(new MockPropertySource()
.withProperty("p1", "v1")
.withProperty("p2", "v2")
.withProperty("p3", new StringBuilder("${p1}:${p2}")));
ConfigurablePropertyResolver pr = new PropertySourcesPropertyResolver(ps);
assertThat(pr.getProperty("p1")).isEqualTo("v1");
assertThat(pr.getProperty("p2")).isEqualTo("v2");
assertThat(pr.getProperty("p3")).isEqualTo("v1:v2");
}
@Test
void ignoreUnresolvableNestedPlaceholdersIsConfigurable() {
MutablePropertySources ps = new MutablePropertySources();