ServerEndpointRecipe

play.api.test.ServerEndpointRecipe
See theServerEndpointRecipe companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def startEndpoint(endpointRecipe: ServerEndpointRecipe, appFactory: ApplicationFactory): (ServerEndpoint, AutoCloseable)

Starts a server by following a ServerEndpointRecipe and using the application provided by an ApplicationFactory. The server's endpoint is passed to the given block of code.

Starts a server by following a ServerEndpointRecipe and using the application provided by an ApplicationFactory. The server's endpoint is passed to the given block of code.

Attributes

def withEndpoint[A](endpointRecipe: ServerEndpointRecipe, appFactory: ApplicationFactory)(block: ServerEndpoint => A): A