TestServer

play.api.test.TestServer
See theTestServer companion object
case class TestServer(config: ServerConfig, application: Application, serverProvider: Option[ServerProvider])

A test web server.

Value parameters

application

The Application to load in this server.

config

The server configuration.

serverProvider

The type of server to use. If not provided, uses Play's default provider.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

True if the server is running either on HTTP or HTTPS port.

True if the server is running either on HTTP or HTTPS port.

Attributes

The address that the server is running on.

The address that the server is running on.

Attributes

The HTTP port that the server is running on.

The HTTP port that the server is running on.

Attributes

The HTTPS port that the server is running on.

The HTTPS port that the server is running on.

Attributes

def start(): Unit

Starts this server.

Starts this server.

Attributes

def stop(): Unit

Stops this server.

Stops this server.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product