Package io.specto.hoverfly.junit.core
Interface SimulationPreprocessor
-
- All Superinterfaces:
java.util.function.Consumer<Simulation>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SimulationPreprocessor extends java.util.function.Consumer<Simulation>
A SimulationPreprocessor processesSimulationinstances prior to handing them over to Hoverfly client. AsSimulationinstances are mutable, you may directly modify the simulation be adding additional request-response-pairs or weakening for example request matching of previously captured session.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(Simulation simulation)
-
-
-
Method Detail
-
accept
void accept(Simulation simulation)
Allows to modify the given mutable
Simulationinstance, by, for example, adapting request matching.- Specified by:
acceptin interfacejava.util.function.Consumer<Simulation>
-
-