public class TestServer
extends play.api.test.TestServer
Constructor and Description |
---|
TestServer(int port,
Application application)
A test web server.
|
TestServer(int port,
Application application,
int sslPort)
A test web server with HTTPS support
|
Modifier and Type | Method and Description |
---|---|
OptionalInt |
getRunningHttpPort()
The HTTP port that the server is running on.
|
OptionalInt |
getRunningHttpsPort()
The HTTPS port that the server is running on.
|
application, apply, apply, apply$default$2, apply$default$3, apply$default$4, canEqual, config, copy, copy$default$1, copy$default$2, copy$default$3, equals, hashCode, isRunning, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix, runningHttpPort, runningHttpsPort, server_$eq, server, serverProvider, start, stop, toString, unapply
public TestServer(int port, Application application)
port
- HTTP port to bind on.application
- The Application to load in this server.public TestServer(int port, Application application, int sslPort)
port
- HTTP port to bind onapplication
- The Application to load in this serversslPort
- HTTPS port to bind onpublic OptionalInt getRunningHttpPort()
public OptionalInt getRunningHttpsPort()