Package org.springframework.boot.context.embedded

Examples of org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext


    }
  }

  @Test
  public void agentServletRegisteredWithAppContext() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    EnvironmentTestUtils.addEnvironment(this.context, "jolokia.config[key1]:value1",
        "jolokia.config[key2]:value2");
    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        ManagementServerPropertiesAutoConfiguration.class,
View Full Code Here


    assertEquals(1, this.context.getBeanNamesForType(JolokiaMvcEndpoint.class).length);
  }

  @Test
  public void agentDisabled() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    EnvironmentTestUtils.addEnvironment(this.context,
        "endpoints.jolokia.enabled:false");
    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        ManagementServerPropertiesAutoConfiguration.class,
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext

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.