public class FakeApplication extends java.lang.Object implements Application
Constructor and Description |
---|
FakeApplication(java.io.File path,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration,
java.util.List<java.lang.String> additionalPlugins,
GlobalSettings global)
Create a fake application.
|
FakeApplication(java.io.File path,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration,
java.util.List<java.lang.String> additionalPlugins,
java.util.List<java.lang.String> withoutPlugins,
GlobalSettings global)
Create a fake application.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
configuration()
Get the application configuration.
|
play.api.test.FakeApplication |
getWrappedApplication()
Get the underlying Scala application.
|
Injector |
injector()
Get the injector for this application.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classloader, getFile, isDev, isProd, isTest, path, plugin, resource, resourceAsStream
public FakeApplication(java.io.File path, java.lang.ClassLoader classloader, java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration, java.util.List<java.lang.String> additionalPlugins, java.util.List<java.lang.String> withoutPlugins, GlobalSettings global)
path
- application environment root pathclassloader
- application environment class loaderadditionalConfiguration
- additional configuration for the applicationadditionalPlugins
- additional plugins to loadwithoutPlugins
- plugins to disableglobal
- global settings to use in place of default globalpublic FakeApplication(java.io.File path, java.lang.ClassLoader classloader, java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration, java.util.List<java.lang.String> additionalPlugins, GlobalSettings global)
path
- application environment root pathclassloader
- application environment class loaderadditionalConfiguration
- additional configuration for the applicationadditionalPlugins
- additional plugins to loadglobal
- global settings to use in place of default globalpublic play.api.test.FakeApplication getWrappedApplication()
getWrappedApplication
in interface Application
public Configuration configuration()
configuration
in interface Application
public Injector injector()
injector
in interface Application