Provide a fallback method for running a test when you don't have access to MicrocksContainer instance #10
Labels
component/settings
Relates to API/settings availables
kind/enhancement
Enhancement of existing feature
Milestone
Reason/Context
As working on the integration of Microcks as a DevService for Quarkus, it appears that it's difficult to have access to the
MicrocksContainer
devservice instance. This instance was initialized during the augmentation phase and - for the moment - I don't find any way of injecting it into the CDI context for later consumption by the unit tests.As a consequence, the unit cannot invoke
microcksContainer.testEndpoint(testRequest)
because of the null instance.Description
As the Quarkus unit test as access to the URL where the container is running that way:
we could propose a fallback where a static method of
MicrocksContainer
is used with an extra argument that is actually thismicrocksContainerUrl
which is the Http endpoint.Implementation ideas
No response
The text was updated successfully, but these errors were encountered: