case class TestServer(config: ServerConfig, application: Application, serverProvider: Option[ServerProvider]) extends Product with Serializable
A test web server.
- config
The server configuration.
- application
The Application to load in this server.
- serverProvider
The type of server to use. If not provided, uses Play's default provider.
- Source
- TestServer.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TestServer
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new TestServer(config: ServerConfig, application: Application, serverProvider: Option[ServerProvider])
- config
The server configuration.
- application
The Application to load in this server.
- serverProvider
The type of server to use. If not provided, uses Play's default provider.
Value Members
- val application: Application
- val config: ServerConfig
- def isRunning: Boolean
True if the server is running either on HTTP or HTTPS port.
True if the server is running either on HTTP or HTTPS port.
- Annotations
- @ApiMayChange()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def runningHttpPort: Option[Int]
The HTTP port that the server is running on.
- def runningHttpsPort: Option[Int]
The HTTPS port that the server is running on.
- val serverProvider: Option[ServerProvider]
- def start(): Unit
Starts this server.
- def stop(): Unit
Stops this server.