Closed brcolow closed 6 years ago
I’ll take a look in the next week or so, currently I’m working on some high priority issues.
I found the problem. I had some lingering, stray imports, namely:
import org.mockserver.client.AbstractClient;
import org.mockserver.client.server.MockServerClient;
in the MockserverTest
class. For some reason my IDE was not fully working and didn't show they were unnecessary. Why that caused the no method exceptions, I'm not sure.
Thanks for your work on Mockserver, James.
Hello,
Upgrading from 5.2.3 to 5.3.0 I go from no errors to getting an exception. Here is a simple example:
Gives:
java.lang.NoSuchMethodError: org.mockserver.integration.ClientAndServer.when(Lorg/mockserver/model/HttpRequest;Lorg/mockserver/matchers/Times;)Lorg/mockserver/client/server/ForwardChainExpectation;
My POM looks like so:
And the IntegrationTest is being run with
maven-failsafe-plugin
. I have been using Mockserver for a couple years, and code like this hasn't broken before. As I said, upgrading from 5.2.3 to 5.3.0 is exactly when the error happens. I wish I had an easy way to git bisect the exact commit, but alas, I am not setup to do that (because I am not sure how to use a git-local dependency with Maven).Thanks very much.