@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface UseGuiceyApp
GuiceyAppRule, but
application instance is created for all tests in class (as if rule would be used with @ClassRule annotation)
Services will be injected into the specification based on regular Guice annotations. @Share may
be used to define common injection points for all tests in class.
Note: setupSpec() fixture is called after application start and cleanupSpec() before
application tear down.
Extension behaviour is the same as spock-guice module.
for details| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<? extends io.dropwizard.Application> |
value |
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
config |
ConfigOverride[] |
configOverride |
java.lang.Class<? extends GuiceyConfigurationHook>[] |
hooks
Hooks provide access to guice builder allowing complete customization of application context
in tests.
|
public abstract java.lang.Class<? extends io.dropwizard.Application> value
public abstract java.lang.String config
public abstract ConfigOverride[] configOverride
public abstract java.lang.Class<? extends GuiceyConfigurationHook>[] hooks
to declare base hooks in base test class,
for more info