Merge branch '2.2.x'
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user