I have a JUnit test which utilises a MockWebServiceServer.
The issue is that within the scope of the test, the MockWebServiceServer object gets called twice with different payloads.
If I use .expect(anything()) to define the object within the test, the test fails with a "No further connections expected" message when the MockWebServiceServer is called for the second time.
Is there any way I can record more than one expectation against a MockWebServiceServer object? Or do I have to define more than one?
Thanks in advance for any assistance.