Class WiremockAware

java.lang.Object
io.quarkiverse.langchain4j.testing.internal.WiremockAware

public abstract class WiremockAware extends Object
This class is used instead of ConnectWireMock because the latter does not work well with QuarkusUnitTest
  • Constructor Details

    • WiremockAware

      public WiremockAware()
  • Method Details

    • wiremockUrlForConfig

      public static String wiremockUrlForConfig()
    • wiremockUrlForConfig

      public static String wiremockUrlForConfig(String path)
    • resolvedWiremockUrl

      public String resolvedWiremockUrl()
      This is meant to be called by test methods or pre- and post-test methods
    • resolvedWiremockUrl

      public String resolvedWiremockUrl(String path)
      This is meant to be called by test methods or pre- and post-test methods
    • wiremock

      protected com.github.tomakehurst.wiremock.client.WireMock wiremock()
      This is meant to be called by test methods or pre- and post-test methods
    • resetRequests

      protected void resetRequests()
    • resetMappings

      protected void resetMappings()
    • singleLoggedRequest

      protected com.github.tomakehurst.wiremock.verification.LoggedRequest singleLoggedRequest()
    • requestBodyOfSingleRequest

      protected byte[] requestBodyOfSingleRequest()
    • getRequestBody

      protected byte[] getRequestBody(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent)