File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
wiremock-spring-boot/src/test/java/usecases Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 66import static org .junit .jupiter .api .Assertions .assertThrows ;
77
88import com .github .tomakehurst .wiremock .client .WireMock ;
9- import org .apache .hc .client5 .http .HttpHostConnectException ;
109import org .junit .jupiter .api .Test ;
1110import org .springframework .beans .factory .annotation .Autowired ;
1211import org .springframework .boot .test .context .SpringBootTest ;
@@ -20,7 +19,7 @@ class NotEnabledTest {
2019 @ Test
2120 void shouldNotHaveWireMockConfigured () {
2221 assertThrows (
23- HttpHostConnectException .class ,
22+ Exception .class ,
2423 () -> WireMock .stubFor (get ("/ping" ).willReturn (aResponse ().withStatus (200 ))));
2524
2625 assertThat (this .env .getProperty ("wiremock.server.baseUrl" )).isNull ();
You can’t perform that action at this time.
0 commit comments