DefaultTestServerFactory

play.api.test.DefaultTestServerFactory
See theDefaultTestServerFactory companion object

Creates a server for an application with a random HTTP port bound. To change the HTTP port you can pass a testserver.port system property. The HTTPS port by default is not bound, but can be enabled by passing the testserver.httpsport system property. If it gets bound it will be using a self-signed certificate.

Most logic in this class is in a protected method so that users can extend the class and override its logic.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

override def start(app: Application): RunningServer

Attributes

Definition Classes