WithServer

play.api.test.WithServer
abstract class WithServer(val app: Application, var port: Int, val serverProvider: Option[ServerProvider]) extends AroundHelper, Scope

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

Value parameters

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.

Attributes

Graph
Supertypes
class AroundHelper
trait Around
trait DelayedInit
trait Around
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def wrap[T : AsResult](t: => T): Result

Attributes

Definition Classes

Inherited methods

def andThen(a: Around): Around

sequence the actions of 2 Around traits

sequence the actions of 2 Around traits

Attributes

Inherited from:
Around
def apply[T : AsResult](a: => T): Result

Attributes

Inherited from:
Around
override def around[T : AsResult](t: => T): Result

Attributes

Definition Classes
AroundHelper -> Around
Inherited from:
AroundHelper
def compose(a: Around): Around

compose the actions of 2 Around traits

compose the actions of 2 Around traits

Attributes

Inherited from:
Around
override def delayedInit(x: => Unit): Unit

use effectively to re-throw FailureExceptions if x failed

use effectively to re-throw FailureExceptions if x failed

Attributes

Definition Classes
Around -> DelayedInit
Inherited from:
Around
def running(): Unit

Attributes

Inherited from:
AroundHelper

Concrete fields

var port: Int

Implicits

Implicits

implicit def implicitApp: Application
implicit def implicitPort: Port