Java 类org.springframework.boot.web.server.WebServer 实例源码

项目:spring-security-oauth2-boot    文件:MockServletWebServerFactory.java   
@Override
public WebServer getWebServer(ServletContextInitializer... initializers) {
    this.webServer = spy(
            new MockServletWebServer(mergeInitializers(initializers), getPort()));
    return this.webServer;
}
项目:spring-boot-admin    文件:DefaultApplicationFactoryTest.java   
private TestWebServerInitializedEvent(String serverId, int port) {
    super(mock(WebServer.class));
    this.serverId = serverId;
    this.server = mock(WebServer.class);
    when(server.getPort()).thenReturn(port);
}
项目:spring-boot-admin    文件:DefaultApplicationFactoryTest.java   
@Override
public WebServer getWebServer() {
    return this.server;
}
项目:spring-boot-admin    文件:ServletApplicationFactoryTest.java   
private TestWebServerInitializedEvent(String serverId, int port) {
    super(mock(WebServer.class));
    this.serverId = serverId;
    this.server = mock(WebServer.class);
    when(server.getPort()).thenReturn(port);
}
项目:spring-boot-admin    文件:ServletApplicationFactoryTest.java   
@Override
public WebServer getWebServer() {
    return this.server;
}