Class HttpServerTest

java.lang.Object
cloud.piranha.http.tests.HttpServerTest

public abstract class HttpServerTest extends Object
An abstract JUnit test for any HttpServer implementation.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • HttpServerTest

      public HttpServerTest()
  • Method Details

    • createServer

      protected abstract HttpServer createServer(int portNumber)
      Create server with a port.
      Parameters:
      portNumber - the port number.
      Returns:
      the HTTP server.
    • createServer

      protected abstract HttpServer createServer(int portNumber, HttpServerProcessor processor)
      Create server with a port and processor.
      Parameters:
      portNumber - the port number.
      processor - the HTTP processor.
      Returns:
      the HTTP server.