public.javadoc.org.spincast.testing.core.AppTestingConfigs.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
AppTestingConfigs (org.spincast:spincast-framework 1.0.0 API)
org.spincast.testing.core
Interface AppTestingConfigs
-
public interface AppTestingConfigs
Informations about the configurations to use
when testing the application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
Class<?>
getAppConfigInterface()
Your application configuration interface.
Class<?>
getAppConfigTestingImplementationClass()
The implementation class to use for your application
configuration binding.
Class<? extends SpincastConfig>
getSpincastConfigTestingImplementationClass()
The implementation class to use for the SpincastConfig
binding.
boolean
isBindAppClass()
Should the App class itself (the clas in which
Spincast.init()
or
Spincast.configure()
is called) be
bound?
-
-
Method Detail
-
isBindAppClass
boolean isBindAppClass()
Should the App class itself (the clas in which
Spincast.init()
or
Spincast.configure()
is called) be
bound?
Returning true
is common if your
test class runs integration tests, since
it is probably the calling class that starts the
HTTP server. Return false
if you
don't need any server to be started, but still
want the full application Guice context to be
created (used in general for unit tests).
-
getSpincastConfigTestingImplementationClass
Class<? extends SpincastConfig> getSpincastConfigTestingImplementationClass()
The implementation class to use for the SpincastConfig
binding. Returns null
to leave it untouched.
-
getAppConfigInterface
Class<?> getAppConfigInterface()
Your application configuration interface. Returns
null
if you don't have one or
to leave it untouched.
-
getAppConfigTestingImplementationClass
Class<?> getAppConfigTestingImplementationClass()
The implementation class to use for your application
configuration binding. Returns
null
if you don't have one or
to leave it untouched.
Copyright © 2019. All rights reserved.