play.test
Class TestServer

java.lang.Object
  extended by play.api.test.TestServer
      extended by play.test.TestServer
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class TestServer
extends play.api.test.TestServer

A test Netty web server.

See Also:
Serialized Form

Constructor Summary
TestServer(int port, FakeApplication application)
          A test Netty web server.
TestServer(int port, FakeApplication application, int sslPort)
          A test Netty web server with HTTPS support
 
Method Summary
 
Methods inherited from class play.api.test.TestServer
$lessinit$greater$default$2, $lessinit$greater$default$3, application, apply$default$2, apply$default$3, canEqual, copy, copy$default$1, copy$default$2, copy$default$3, curried, equals, hashCode, port, productArity, productElement, productIterator, productPrefix, sslPort, start, stop, toString, tupled
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestServer

public TestServer(int port,
                  FakeApplication application)
A test Netty web server.

Parameters:
port - HTTP port to bind on.
application - The FakeApplication to load in this server.

TestServer

public TestServer(int port,
                  FakeApplication application,
                  int sslPort)
A test Netty web server with HTTPS support

Parameters:
port - HTTP port to bind on
application - The FakeApplication to load in this server
sslPort - HTTPS port to bind on