Search in sources :

Example 6 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyMiscellaneousFunctionalityComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    serverConfig = new MiscellaneousFunctionalityTestConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 7 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyRequestSizeValidationComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    objectMapper = new ObjectMapper();
    serverConfig = new RequestSizeValidationConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) BeforeClass(org.junit.BeforeClass)

Example 8 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifySSLComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    serverConfig = new SSLTestConfig();
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 9 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class VerifyPayloadHandlingComponentTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    downstreamNonSslServerConfig = new DownstreamServerTestConfig(false);
    downstreamNonSslServer = new Server(downstreamNonSslServerConfig);
    downstreamNonSslServer.startup();
    downstreamSslServerConfig = new DownstreamServerTestConfig(true);
    downstreamSslServer = new Server(downstreamSslServerConfig);
    downstreamSslServer.startup();
    serverConfig = new PayloadTypeHandlingTestConfig(downstreamNonSslServerConfig.endpointsPort(), downstreamSslServerConfig.endpointsSslPort());
    server = new Server(serverConfig);
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server) BeforeClass(org.junit.BeforeClass)

Example 10 with Server

use of com.nike.riposte.server.Server in project riposte by Nike-Inc.

the class ArchaiusServer method startServer.

/**
     * Creates the {@link Server} instance using {@link #getServerConfig()}, then calls {@link Server#startup()}.
     * DO NOT CALL THIS DIRECTLY. Use {@link #launchServer(String[])} when you're ready to start the server.
     */
protected void startServer() throws Exception {
    server = new Server(getServerConfig());
    server.startup();
}
Also used : Server(com.nike.riposte.server.Server)

Aggregations

Server (com.nike.riposte.server.Server)20 BeforeClass (org.junit.BeforeClass)15 ArrayList (java.util.ArrayList)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 Future (java.util.concurrent.Future)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ConfigurationManager (com.netflix.config.ConfigurationManager)1 Pair (com.nike.internal.util.Pair)1 ServerConfig (com.nike.riposte.server.config.ServerConfig)1 Endpoint (com.nike.riposte.server.http.Endpoint)1 StandardEndpoint (com.nike.riposte.server.http.StandardEndpoint)1 SimpleProxyRouterEndpoint (com.nike.riposte.server.http.impl.SimpleProxyRouterEndpoint)1 MainClassUtils (com.nike.riposte.util.MainClassUtils)1 IOException (java.io.IOException)1 Collection (java.util.Collection)1 LinkedHashSet (java.util.LinkedHashSet)1 Set (java.util.Set)1 Function (java.util.function.Function)1 Collectors (java.util.stream.Collectors)1 AbstractConfiguration (org.apache.commons.configuration.AbstractConfiguration)1