Package org.springframework.core.env

Examples of org.springframework.core.env.ConfigurableEnvironment.acceptsProfiles()


    application.setWebEnvironment(false);
    application.setAdditionalProfiles("foo");
    ConfigurableEnvironment environment = new StandardEnvironment();
    application.setEnvironment(environment);
    application.run();
    assertTrue(environment.acceptsProfiles("foo"));
  }

  @Test
  public void addProfilesOrder() throws Exception {
    SpringApplication application = new SpringApplication(ExampleConfig.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.