Class WiremockAware
java.lang.Object
io.quarkiverse.langchain4j.testing.internal.WiremockAware
This class is used instead of
ConnectWireMock because the latter does not
work well with QuarkusUnitTest-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getRequestBody(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent) protected byte[]protected voidprotected voidThis is meant to be called by test methods or pre- and post-test methodsresolvedWiremockUrl(String path) This is meant to be called by test methods or pre- and post-test methodsprotected com.github.tomakehurst.wiremock.verification.LoggedRequestprotected com.github.tomakehurst.wiremock.client.WireMockwiremock()This is meant to be called by test methods or pre- and post-test methodsstatic Stringstatic StringwiremockUrlForConfig(String path)
-
Constructor Details
-
WiremockAware
public WiremockAware()
-
-
Method Details
-
wiremockUrlForConfig
-
wiremockUrlForConfig
-
resolvedWiremockUrl
This is meant to be called by test methods or pre- and post-test methods -
resolvedWiremockUrl
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)
-