SpectoLabs / hoverfly-java

Java binding for Hoverfly
Apache License 2.0
168 stars 58 forks source link

Support meta annotations #297

Closed detouched closed 7 months ago

detouched commented 7 months ago

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
  ...
}
tommysitu commented 7 months ago

@detouched sorry for the delay. Have you got any more changes? If not, I can get a new release out.

detouched commented 7 months ago

No worries @tommysitu 😄

I don't have any other changes so far, thanks.