Rain Oksvort
03/28/2024, 2:45 PMwireMockServer = new WireMockServer(WireMockConfiguration.options().port(8080));
httpClient = HttpClients.createDefault();
wireMockServer.start();
Is there a way to do it Spring way and use annotations instead? For example here https://wiremock.org/docs/solutions/spring-boot/ it talks about @EnableWireMock
annotation. But when I try to add it to my code then with my dependency Intellij can't find where to import EnableWireMock.
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<version>2.27.2</version>
<scope>test</scope>
</dependency>
I also tried this dependency:
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>3.0.1</version>
<type>pom</type>
<scope>test</scope>
</dependency>
But still no way to import @EnableWireMock annotation.
Is there any way in java 8 not to initialize it in Java but rather use annotations like example on your home page?Lee Turner
03/28/2024, 3:10 PMRain Oksvort
03/28/2024, 4:01 PMLee Turner
03/28/2024, 5:13 PMRain Oksvort
04/01/2024, 7:07 AM<dependency>
<groupId>com.maciejwalkowiak.spring</groupId>
<artifactId>wiremock-spring-boot</artifactId>
<version>2.1.2</version>
<scope>test</scope>
</dependency>
Rain Oksvort
04/01/2024, 8:24 AMLee Turner
04/01/2024, 8:43 AMLee Turner
04/01/2024, 8:44 AMRain Oksvort
04/01/2024, 9:18 AM