Package spock.guice
Annotation Type UseModules
@Retention(RUNTIME) @Target(TYPE) @Repeatable(Container.class) public @interface UseModules
Activates Guice integration for a specification.
The specified modules will be started before and stopped after the specification's execution.
Services will be injected into the specification based on regular Guice annotations.
Detached mocks/stubs created by the
DetachedMockFactory
are automatically attached
to the Specification when they are injected via @Inject
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UseModules.Container
-
Required Element Summary
-
Element Details
-
value
Class<? extends com.google.inject.Module>[] value
-