c

play.api.test

WithServer

abstract class WithServer extends AroundHelper with Scope

Used to run specs within the context of a running server.

Source
Specs.scala
Linear Supertypes
AroundHelper, Around, DelayedInit, Around, Context, Scope, Scope, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithServer
  2. AroundHelper
  3. Around
  4. DelayedInit
  5. Around
  6. Context
  7. Scope
  8. Scope
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WithServer(app: Application = GuiceApplicationBuilder().build(), port: Int = Helpers.testServerPort, serverProvider: Option[ServerProvider] = None)

    app

    The fake application

    port

    The port to run the server on

    serverProvider

    *Experimental API; subject to change* The type of server to use. Defaults to providing a Netty server.

Value Members

  1. def andThen(a: Around): Around
    Definition Classes
    Around
  2. val app: Application
  3. def apply[T](a: => T)(implicit arg0: AsResult[T]): Result
    Definition Classes
    Around → Context
  4. def around[T](t: => T)(implicit arg0: AsResult[T]): Result
    Definition Classes
    AroundHelper → Around
  5. def compose(a: Around): Around
    Definition Classes
    Around
  6. def delayedInit(x: => Unit): Unit
    Definition Classes
    Around → DelayedInit
  7. implicit def implicitApp: Application
  8. implicit def implicitMaterializer: Materializer
  9. implicit def implicitPort: Port
  10. var port: Int
  11. def running(): Unit
    Definition Classes
    AroundHelper
  12. val serverProvider: Option[ServerProvider]
  13. def wrap[T](t: => T)(implicit arg0: AsResult[T]): Result
    Definition Classes
    AroundHelper