Interface StubPostProcessor<T>

  • Type Parameters:
    T - type of stub mapping
    All Known Subinterfaces:
    WireMockStubPostProcessor

    public interface StubPostProcessor<T>
    Post processor of stub mappings.
    Since:
    3.0.0
    Author:
    Marcin Grzejszczak
    • Field Detail

    • Method Detail

      • postProcess

        default T postProcess​(T stubMapping,
                              org.springframework.cloud.contract.spec.Contract contract)
        Parameters:
        stubMapping - - generated stub mapping
        contract - - contract for which the mapping was generated
        Returns:
        modified stub mapping
      • isApplicable

        boolean isApplicable​(org.springframework.cloud.contract.spec.Contract contract)
        Parameters:
        contract - - contract for which the mapping was generated
        Returns:
        true if this post process should be applied