Annotation Type PactFilter


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface PactFilter
    Annotation to filter pacts. The default implementation is to filter by provider state. The filter supports regular expressions.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] value
      Values to use for filtering.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends InteractionFilter> filter
      Use this class as filter implementation.
    • Element Detail

      • value

        java.lang.String[] value
        Values to use for filtering. Regular expressions are allowed, like "^state \\d". If none of the provided values matches, the interaction is not verified.
      • filter

        java.lang.Class<? extends InteractionFilter> filter
        Use this class as filter implementation. The class must implement the InteractionFilter interface and provide a default constructor. The default value is filtering by provider state.
        Default:
        au.com.dius.pact.provider.junitsupport.filter.InteractionFilter.ByProviderState.class