trait ServerProvider extends AnyRef
Trait that defines abstract methods that providing a port number and implicit Application
and a concrete
method that provides an implicit PortNumber that wraps the port number.
This trait is implemented by OneServerPerSuite,
OneServerPerTest, and
ConfiguredServer, each of which use a different strategy to
provide TestServer
s to tests. This trait is included in the self-type of
OneBrowserPerSuite, and
OneBrowserPerTest, and
AllBrowsersPerTest, allowing you to select
the WebDriver
strategy (i.e., the extent to which WebDriver
s are shared between tests) independently from the
TestServer
strategy (the extent to which TestServer
s are shared between tests).
- Source
- ServerProvider.scala
- Alphabetic
- By Inheritance
- ServerProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- implicit abstract def app: Application
Implicit method that returns a
Application
instance.
Concrete Value Members
- final def port: Int
The port used by the
TestServer
. - implicit def portNumber: PortNumber
Implicit
PortNumber
instance that wrapsport
.Implicit
PortNumber
instance that wrapsport
. The value returned fromportNumber.value
will be same as the value ofport
.- returns
the configured port number, wrapped in a
PortNumber