Merge branch '2.2.x'

This commit is contained in:
spencergibb
2021-03-29 17:02:35 -04:00
7 changed files with 74 additions and 11 deletions

View File

@@ -29,6 +29,7 @@ import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointPr
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.boot.web.server.LocalServerPort;
import org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentProperties;
import org.springframework.cloud.config.server.test.ConfigServerTestUtils;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.test.context.junit4.SpringRunner;
@@ -104,4 +105,12 @@ public class ApplicationBootstrapTests {
assertThat(property).containsEntry("value", "bar");
}
@Test
public void propertiesBeansRegisterByCompositeEnvBeanFactoryPostProcessor() {
String[] beanNames = server
.getBeanNamesForType(MultipleJGitEnvironmentProperties.class);
assertThat(beanNames).isNotNull()
.anyMatch(s -> s.matches("git-env-repo-properties\\d"));
}
}