Annotation Interface PactVerification


@Retention(RUNTIME) @Target(METHOD) public @interface PactVerification
Before each test, a mock server will be setup at given port/host that will provide mocked responses. After each test, it will be torn down.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Method to call to get the pact fragment.
    the tested provider name.
  • Element Details

    • value

      String[] value
      the tested provider name.
      Default:
      {""}
    • fragment

      String fragment
      Method to call to get the pact fragment. Defaults to empty string which results in using the first one found
      Default:
      ""