Move to SNAPSHOTs

* Downgrade to Micrometer-1.10.0
* Updates according compatibility with the latest SF changes
This commit is contained in:
Artem Bilan
2022-04-14 12:27:46 -04:00
parent 4b57363a05
commit f54d4b3d75
4 changed files with 16 additions and 25 deletions

View File

@@ -144,6 +144,7 @@ public class CookieTests {
public void close() {
}
@Deprecated
public int getRawStatusCode() {
return 200;
}

View File

@@ -881,7 +881,7 @@ public class HttpRequestExecutingMessageHandlerTests {
when(requestFactory.createRequest(any(URI.class), any(HttpMethod.class))).thenReturn(clientRequest);
ClientHttpResponse response = mock(ClientHttpResponse.class);
when(response.getRawStatusCode()).thenReturn(HttpStatus.NOT_FOUND.value());
when(response.getStatusCode()).thenReturn(HttpStatus.NOT_FOUND);
when(response.getStatusText()).thenReturn("Not Found");
when(response.getBody()).thenReturn(new ByteArrayInputStream(new byte[0]));
@@ -895,21 +895,11 @@ public class HttpRequestExecutingMessageHandlerTests {
return headers;
}
public static class City {
private final String name;
public City(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public record City(String name) {
@Override
public String toString() {
return name;
return this.name;
}
}