Package spock.guice

Annotation Type UseModules


@Retention(RUNTIME) @Target(TYPE) 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.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends com.google.inject.Module>[]
     
  • Element Details

    • value

      Class<? extends com.google.inject.Module>[] value