@Deprecated 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)
Deprecated.
Create a fake application.
|
FakeApplication(java.io.File path,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration,
GlobalSettings global)
Deprecated.
Use the version without GlobalSettings, since 2.5.0
|
Modifier and Type | Method and Description |
---|---|
Configuration |
configuration()
Deprecated.
Get the application configuration.
|
play.api.test.FakeApplication |
getWrappedApplication()
Deprecated.
Get the underlying Scala application.
|
Injector |
injector()
Deprecated.
Get the injector for this application.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classloader, getFile, isDev, isProd, isTest, path, resource, resourceAsStream
@Deprecated public FakeApplication(java.io.File path, java.lang.ClassLoader classloader, java.util.Map<java.lang.String,? extends java.lang.Object> additionalConfiguration, GlobalSettings global)
path
- application environment root pathclassloader
- application environment class loaderadditionalConfiguration
- additional configuration for the applicationglobal
- 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)
path
- application environment root pathclassloader
- application environment class loaderadditionalConfiguration
- additional configuration for the applicationpublic play.api.test.FakeApplication getWrappedApplication()
getWrappedApplication
in interface Application
public Configuration configuration()
configuration
in interface Application
public Injector injector()
injector
in interface Application