Class AbstractOpa

  • Direct Known Subclasses:
    OpaClassExtension

    public abstract class AbstractOpa
    extends java.lang.Object
    • Constructor Detail

      • AbstractOpa

        public AbstractOpa()
    • Method Detail

      • verify

        public void verify​(int count,
                           java.lang.String httpMethod,
                           java.lang.String path)
        Verify if the policy was called for the method/path

        Please prefer to use verify(count, onRequest().withHttpMethod(httpMethod).withPath(path)) instead.

        Parameters:
        count - the expected count of calls
        httpMethod - the HTTP method to check
        path - the path to check
      • buildRequestPattern

        public com.github.tomakehurst.wiremock.matching.RequestPatternBuilder buildRequestPattern​(AbstractOpa.StubBuilder builder)