Class GitHubWireMockRule

  • All Implemented Interfaces:
    org.junit.rules.MethodRule, org.junit.rules.TestRule

    public class GitHubWireMockRule
    extends WireMockMultiServerRule
    The standard WireMockRule eagerly initializes a WireMockServer. This version suptakes a laze approach allowing us to automatically isolate snapshots for each method.
    Author:
    Liam Newman
    • Constructor Detail

      • GitHubWireMockRule

        public GitHubWireMockRule()
      • GitHubWireMockRule

        public GitHubWireMockRule​(com.github.tomakehurst.wiremock.core.WireMockConfiguration options)
      • GitHubWireMockRule

        public GitHubWireMockRule​(com.github.tomakehurst.wiremock.core.WireMockConfiguration options,
                                  boolean failOnUnmatchedRequests)
    • Method Detail

      • apiServer

        public com.github.tomakehurst.wiremock.WireMockServer apiServer()
      • rawServer

        public com.github.tomakehurst.wiremock.WireMockServer rawServer()
      • uploadsServer

        public com.github.tomakehurst.wiremock.WireMockServer uploadsServer()
      • codeloadServer

        public com.github.tomakehurst.wiremock.WireMockServer codeloadServer()
      • actionsUserContentServer

        public com.github.tomakehurst.wiremock.WireMockServer actionsUserContentServer()
      • isUseProxy

        public boolean isUseProxy()
      • isTakeSnapshot

        public boolean isTakeSnapshot()
      • isTestWithOrg

        public boolean isTestWithOrg()
      • getRequestCount

        public int getRequestCount()
      • getRequestCount

        public static int getRequestCount​(com.github.tomakehurst.wiremock.WireMockServer server)