Closed frudolph77 closed 2 years ago
I can see the issue you mentioned with multiple SLF4J bindings, it seems that the shaded plugins includes optional dependencies from the pom which seems like a bug in the shaded plugin to me.
I'm just testing a fix for that first before looking at the issue you mentioned above.
The SNAPSHOT version now no longer had the jdk14 SLF4J bindings in the shaded or no-dependencies jars.
I can't reproduce this error but you haven't provided the code for AbstractOperatorTest
which I imagine is what may be causing the problem in you case.
If you provide the code for AbstractOperatorTest
I may be able to understand why this is not working in your case.
Describe the issue It seems that injecting
MockServerClient
into constructor is not working.What you are trying to do I'm trying to use MockServer as a 'standalone' MockServer to run IntegrationTests.
I have added the following to the pom:**
I'm not using
...-no-dependencies
because it breaks the logging in the project, due to multiple SLJ4J bindings.In my TestCase im using
MockServer version 5.13.2
To Reproduce Steps to reproduce the issue:
client.when()
Expected behaviour
ClientAndServer
orMockServerClient
Instance in constructor not to be nullMockServer Log But in the LOG I see this
So the MockServer is started, and I also see the logs of the incoming request when I disable the configuring of expectations
When using injection to
@BeforeAll
or test case the injected client is not null, but in the specific case I can't use these approaches. It's mandatory to init the MockServer in the Constructor of the TestClass.