How to disable WireMock server for a single test?
I'm writing tests for my Spring Boot service. I use Wiremock for mocking HTTP requests. I need to disable the WireMock server temporarily for one specific test to simulate the unavailability of the external service.
Here is my current test class:
@SpringBootTest(classes = {ArticleService.class, ArticleServiceTest.TestConfig.class})
@WireMockTest(httpPort = 8080, proxyMode = true)
public class ArticleServiceTest {
@Autowired
private ArticleService articleService;...