Implicit method that returns the FakeApplication instance for the current test.
Creates new instance of FakeApplication with parameters set to their defaults.
Creates new instance of FakeApplication with parameters set to their defaults. Override this method if you
need a FakeApplication created with non-default parameter values.
Creates a new FakeApplication instance before executing each test, and
ensure it is cleaned up after the test completes.
Creates a new FakeApplication instance before executing each test, and
ensure it is cleaned up after the test completes. You can access the FakeApplication from
your tests via app.
the no-arg test function to run with a fixture
the Outcome of the test execution
Trait that provides a new
FakeApplicationinstance for each test.This
SuiteMixintrait's overriddenwithFixturemethod creates a newFakeApplicationbefore each test and ensures it is cleaned up after the test has completed. You can access theFakeApplicationfrom your tests as methodapp(which is marked implicit).By default, this trait creates a new
FakeApplicationfor each test using default parameter values, which is returned by thenewAppForTestmethod defined in this trait. If your tests need aFakeApplicationwith non-default parameters, overridenewAppForTestto return it.Here's an example that demonstrates some of the services provided by this trait: