abstract class Server extends NoArg
NoArg
subclass that provides a fixture composed of a Application
and running TestServer
.
- Source
- MixedFixtures.scala
- Alphabetic
- By Inheritance
- Server
- NoArg
- Function0
- DelayedInit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Server(appFun: => Application = new GuiceApplicationBuilder().build(), port: Int = Helpers.testServerPort)
Value Members
- lazy val app: Application
The lazy instance created from passed
appFun
- def apply(): Unit
Runs a
TestServer
using the passed-inApplication
and port before executing the test body, ensuring both are stopped after the test body completes.Runs a
TestServer
using the passed-inApplication
and port before executing the test body, ensuring both are stopped after the test body completes.- Definition Classes
- Server → NoArg → Function0
- final def delayedInit(body: => Unit): Unit
- Definition Classes
- NoArg → DelayedInit
- implicit def implicitApp: Application
Makes the passed in
Application
implicit. - val port: Int
- implicit lazy val portNumber: PortNumber
Implicit
PortNumber
instance that wrapsport
.Implicit
PortNumber
instance that wrapsport
. The value returned fromportNumber.value
will be same as the value ofport
. - final val styleName: Int
- Definition Classes
- NoArg
- def toString(): String
- Definition Classes
- Function0 → AnyRef → Any