Injecting

play.api.test.Injecting
trait Injecting

A trait declared on a class that contains an def app: Application, and can provide instances of a class. Useful in integration tests.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def inject[T : ClassTag]: T

Given an application, provides an instance from the application.

Given an application, provides an instance from the application.

Type parameters

T

the type to return, using app.injector.instanceOf

Attributes

Returns

an instance of type T.