Annotation Type UseGuiceyHooks

  • @Retention(RUNTIME)
    public @interface UseGuiceyHooks
    additional hooks could be declared in static test fields (even in base test class)
    Guicey hook extension. Used to register GuiceyConfigurationHook in base test class (usually with debug extensions, common for all tests). In actual tests use hooks attribute of UseGuiceyApp or UseDropwizardApp extensions to apply test-specific configurations.

    WARNING: only one UseGuiceyHooks annotation could be used in test hierarchy. For example, you can't use it in both base class and test class. This is spock limitation, but should not be an issue for most cases.

    See Also:
    for more info
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends GuiceyConfigurationHook>[] value