@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 |
public abstract java.lang.Class<? extends io.dropwizard.Application> value
public abstract java.lang.String config
public abstract ConfigOverride[] configOverride