Package io.specto.hoverfly.junit5.api
Annotation Type HoverflySimulate
-
@Inherited @Target(TYPE) @Retention(RUNTIME) public @interface HoverflySimulateAnnotation used along withHoverflyExtensionto run Hoverfly in simulate mode By default, it tries to import simulation file from default Hoverfly test resources path ("src/test/resources/hoverfly") with filename equals to the fully qualified class name of the annotated class.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description HoverflyConfigconfigHoverfly configurationsbooleanenableAutoCaptureEnable this flag to run Hoverfly in capture mode if simulation source is not present, otherwise, in simulate mode This flag has no effect onHoverflySimulate.SourceType.URLsourceHoverflySimulate.SourcesourceSimulation source to import
-
-
-
Element Detail
-
config
HoverflyConfig config
Hoverfly configurations- See Also:
HoverflyConfig
- Default:
- @io.specto.hoverfly.junit5.api.HoverflyConfig
-
-
-
source
HoverflySimulate.Source source
Simulation source to import- See Also:
HoverflySimulate.Source
- Default:
- @io.specto.hoverfly.junit5.api.HoverflySimulate.Source
-
-
-
enableAutoCapture
boolean enableAutoCapture
Enable this flag to run Hoverfly in capture mode if simulation source is not present, otherwise, in simulate mode This flag has no effect onHoverflySimulate.SourceType.URLsource- Default:
- false
-
-