Skip to content

Commit 6730b44

Browse files
committed
chore: ease WireMock 4 upgrade later
1 parent 3cf405d commit 6730b44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wiremock-spring-boot/src/test/java/usecases/NotEnabledTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import static org.junit.jupiter.api.Assertions.assertThrows;
77

88
import com.github.tomakehurst.wiremock.client.WireMock;
9-
import org.apache.hc.client5.http.HttpHostConnectException;
109
import org.junit.jupiter.api.Test;
1110
import org.springframework.beans.factory.annotation.Autowired;
1211
import 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();

0 commit comments

Comments
 (0)