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
- Alphabetic
- By Inheritance
- TestServer
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val application: Application
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val config: ServerConfig
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
port: Int
The port that the server is running on.
The port that the server is running on.
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.4) Using runningHttpPort or runningHttpsPort instead