class DefaultTestServerFactory extends TestServerFactory

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.

Annotations
@ApiMayChange()
Source
TestServerFactory.scala
Linear Supertypes
TestServerFactory, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultTestServerFactory
  2. TestServerFactory
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultTestServerFactory()

Value Members

  1. def start(app: Application): RunningServer
    Definition Classes
    TestServerFactory