Package org.springframework.boot.test

Examples of org.springframework.boot.test.ServerPortInfoApplicationContextInitializer


  @Test
  public void portPropertiesOnSamePort() throws Exception {
    this.applicationContext.register(RootConfig.class, BaseConfiguration.class,
        ServerPortConfig.class, EndpointWebMvcAutoConfiguration.class);
    new ServerPortInfoApplicationContextInitializer()
        .initialize(this.applicationContext);
    this.applicationContext.refresh();
    Integer localServerPort = this.applicationContext.getEnvironment().getProperty(
        "local.server.port", Integer.class);
    Integer localManagementPort = this.applicationContext.getEnvironment()
View Full Code Here


    assertAllClosed();
  }

  @Test
  public void portPropertiesOnDifferentPort() throws Exception {
    new ServerPortInfoApplicationContextInitializer()
        .initialize(this.applicationContext);
    this.applicationContext.register(RootConfig.class, DifferentPortConfig.class,
        BaseConfiguration.class, EndpointWebMvcAutoConfiguration.class,
        ErrorMvcAutoConfiguration.class);
    this.applicationContext.refresh();
View Full Code Here

TOP

Related Classes of org.springframework.boot.test.ServerPortInfoApplicationContextInitializer

Copyright © 2018 www.massapicom. 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.