use of cn.taketoday.framework.context.config.TestConfigDataBootstrap.LoaderHelper in project today-infrastructure by TAKETODAY.
the class ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests method bootstrapsApplicationContext.
@Test
void bootstrapsApplicationContext() {
String args = "--context.config.import=classpath:application-bootstrap-registry-integration-tests.properties";
try (ConfigurableApplicationContext context = application.run(args)) {
LoaderHelper bean = context.getBean(TestConfigDataBootstrap.LoaderHelper.class);
assertThat(bean).isNotNull();
assertThat(bean.getBound()).isEqualTo("igotbound");
assertThat(bean.getProfileBound()).isEqualTo("igotprofilebound");
assertThat(bean.getLocation().getResolverHelper().getLocation()).isEqualTo(ConfigDataLocation.valueOf("testbootstrap:test"));
}
}
use of cn.taketoday.framework.context.config.TestConfigDataBootstrap.LoaderHelper in project today-framework by TAKETODAY.
the class ConfigDataEnvironmentPostProcessorBootstrapContextIntegrationTests method bootstrapsApplicationContext.
@Test
void bootstrapsApplicationContext() {
String args = "--context.config.import=classpath:application-bootstrap-registry-integration-tests.properties";
try (ConfigurableApplicationContext context = application.run(args)) {
LoaderHelper bean = context.getBean(TestConfigDataBootstrap.LoaderHelper.class);
assertThat(bean).isNotNull();
assertThat(bean.getBound()).isEqualTo("igotbound");
assertThat(bean.getProfileBound()).isEqualTo("igotprofilebound");
assertThat(bean.getLocation().getResolverHelper().getLocation()).isEqualTo(ConfigDataLocation.valueOf("testbootstrap:test"));
}
}
Aggregations