Hello everyone, I am facing an issue with wiremock...
# wiremock-java
m
Hello everyone, I am facing an issue with wiremock on my application and I am looking for a help to mitigate this issue. Application stack : Java 17 Spring 3.2.3 maven Starting on 10/04, my application is failing to build on Azure with the following error:
package com.github.tomakehurst.wiremock.client does not exist
##[error] /home/vsts/work/1/s/src/test/java/com/pluxee/mpal/novopayment/transaction/RefundTest.java(36,1): error :  /home/vsts/work/1/s/src/test/java/com/pluxee/mpal/novopayment/transaction/RefundTest.java:[36,1] static import only from classes and interfaces
[ERROR] /home/vsts/work/1/s/src/test/java/com/pluxee/mpal/novopayment/transaction/RefundTest.java:[36,1] static import only from classes and interfaces And I use this package in my test classes:
Copy code
import com.github.tomakehurst.wiremock.client.WireMock
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.Mockito.when;
import static org.springframework.http.MediaType.APPLICATION_JSON;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
The only dependency I have been using so far is :
Copy code
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-contract-wiremock</artifactId>
    <version>4.0.2</version>
    <scope>test</scope>
</dependency>
I use wiremock on my unit tests, so I am wondering if there is something depreciated or any changes related with this package. I have been trying to get this working since this is blocking us to deploy our application in prod. And as I mentioned, this all started on 10/04, it was working just fine this entire time Thanks in advance for the help!