Java 类org.springframework.boot.context.embedded.config.ExampleEmbeddedWebApplicationConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailable() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            SessionScopedComponent.class);
    verifyContext();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailableToServlet() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            ExampleServletWithAutowired.class, SessionScopedComponent.class);
    Servlet servlet = this.context.getBean(ExampleServletWithAutowired.class);
    assertThat(servlet).isNotNull();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void registerAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.register(ExampleEmbeddedWebApplicationConfiguration.class);
    this.context.refresh();
    verifyContext();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void scanAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.scan(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    this.context.refresh();
    verifyContext();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailable() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            SessionScopedComponent.class);
    verifyContext();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailableToServlet() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            ExampleServletWithAutowired.class, SessionScopedComponent.class);
    Servlet servlet = this.context.getBean(ExampleServletWithAutowired.class);
    assertThat(servlet).isNotNull();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void registerAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.register(ExampleEmbeddedWebApplicationConfiguration.class);
    this.context.refresh();
    verifyContext();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void scanAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.scan(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    this.context.refresh();
    verifyContext();
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailable() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            SessionScopedComponent.class);
    verifyContext();
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void sessionScopeAvailableToServlet() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class,
            ExampleServletWithAutowired.class, SessionScopedComponent.class);
    Servlet servlet = this.context.getBean(ExampleServletWithAutowired.class);
    assertNotNull(servlet);
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void registerAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.register(ExampleEmbeddedWebApplicationConfiguration.class);
    this.context.refresh();
    verifyContext();
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void scanAndRefresh() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext();
    this.context.scan(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    this.context.refresh();
    verifyContext();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromScan() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    verifyContext();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromConfigClass() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class);
    verifyContext();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromScan() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    verifyContext();
}
项目:spring-boot-concourse    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromConfigClass() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class);
    verifyContext();
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromScan() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class.getPackage().getName());
    verifyContext();
}
项目:contestparser    文件:AnnotationConfigEmbeddedWebApplicationContextTests.java   
@Test
public void createFromConfigClass() throws Exception {
    this.context = new AnnotationConfigEmbeddedWebApplicationContext(
            ExampleEmbeddedWebApplicationConfiguration.class);
    verifyContext();
}