Package ru.vyarus.dropwizard.guice.test
Annotation Type EnableHook
-
@Retention(RUNTIME) @Target(FIELD) public @interface EnableHook
Marker annotation forGuiceyConfigurationHook
test fields declaration. Extra annotation required to remove uncertainty and apply some context (avoid confusion why it works).Example usage:
@EnableHook static GuiceyConfigurationHook HOOK = builder -> builder.modules(new Mod())
Target fields must be static fields. If non static or not
GuiceyConfigurationHook
filed annotated then error will be thrown indicating incorrect usage.Annotation works with junit 5 and spock extensions (dropwizard and guicey).
- Since:
- 25.05.2020