Use findAnnotation helper from JUnit toolset to allow meta annotations for configuring Hoverfly – another way of reusing the configuration in different tests.
@HoverflyCore(...)
@ExtendWith(HoverflyExtension.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MetaHoverfly {}
and then
@MetaHoverfly
public class FooBarTest { // will get Hoverfly core and extensions
...
}
Use
findAnnotation
helper from JUnit toolset to allow meta annotations for configuring Hoverfly – another way of reusing the configuration in different tests.and then