Co-authored-by: Ryan Baxter <524254+ryanjbaxter@users.noreply.github.com>
This commit is contained in:
@@ -71,12 +71,12 @@ public class ConfigurationPropertiesRebinderIntegrationTests {
|
||||
@Test
|
||||
@DirtiesContext
|
||||
public void testRefreshInParent() throws Exception {
|
||||
then(this.config.getName()).isEqualTo("main");
|
||||
then(this.config.getName()).isEqualTo("parent");
|
||||
// Change the dynamic property source...
|
||||
TestPropertyValues.of("config.name=foo").applyTo(this.environment);
|
||||
// ...and then refresh, so the bean is re-initialized:
|
||||
this.rebinder.rebind();
|
||||
then(this.config.getName()).isEqualTo("foo");
|
||||
then(this.config.getName()).isEqualTo("parent");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user