Package org.spincast.testing.core
Interface AppTestingConfigs
public interface AppTestingConfigs
Informations about the configurations to use
when testing the application.
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Your application configuration interface.Class<?>
The implementation class to use for your application configuration binding.Class<? extends SpincastConfig>
The implementation class to use for theSpincastConfig
binding.boolean
Should the App class itself (the clas in whichSpincast.init()
orSpincast.configure()
is called) be bound?
-
Method Details
-
isBindAppClass
boolean isBindAppClass()Should the App class itself (the clas in whichSpincast.init()
orSpincast.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. Returnfalse
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 theSpincastConfig
binding. Returnsnull
to leave it untouched. -
getAppConfigInterface
Class<?> getAppConfigInterface()Your application configuration interface. Returnsnull
if you don't have one or to leave it untouched. -
getAppConfigTestingImplementationClass
Class<?> getAppConfigTestingImplementationClass()The implementation class to use for your application configuration binding. Returnsnull
if you don't have one or to leave it untouched.
-