WireMock is not resetting stubs in between Spring Boot tests
I have the following test class. Both tests are passing because the stub in test1 isn't being reset before test2 is running. Test2 fails when run alone. The before each method is being called before each test.
Does anyone know what could cause this?
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@SpringBootTest(webEnvironment = RANDOM_PORT)
@EnableWireMock({
@ConfigureWireMock(name = "my-server", port = 4000)
})
public class MyTest {
@InjectWireMock("my-server")...