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 processesSimulation instances prior to handing them over to Hoverfly client. As Simulation instances 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 Detail

      • accept

        void accept​(Simulation simulation)

        Allows to modify the given mutable Simulation instance, by, for example, adapting request matching.

        Specified by:
        accept in interface java.util.function.Consumer<Simulation>