Skip to content

Commit 770fb1a

Browse files
committed
Fixing Jackson errors
1 parent af4b603 commit 770fb1a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spring-cloud-commons/src/test/java/org/springframework/cloud/client/serviceregistry/endpoint/ServiceRegistryEndpointTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import java.util.Map;
2222
import java.util.concurrent.atomic.AtomicReference;
2323

24-
import com.fasterxml.jackson.databind.ObjectMapper;
2524
import org.junit.jupiter.api.Test;
25+
import tools.jackson.databind.ObjectMapper;
2626

2727
import org.springframework.beans.factory.annotation.Autowired;
2828
import org.springframework.boot.SpringBootConfiguration;

spring-cloud-context/src/test/java/org/springframework/cloud/context/environment/EnvironmentManagerIntegrationTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
import java.util.Map;
2121
import java.util.UUID;
2222

23-
import com.fasterxml.jackson.core.JsonProcessingException;
24-
import com.fasterxml.jackson.databind.ObjectMapper;
2523
import jakarta.servlet.ServletException;
2624
import org.junit.jupiter.api.Test;
25+
import tools.jackson.databind.ObjectMapper;
2726

2827
import org.springframework.beans.factory.annotation.Autowired;
2928
import org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties;
@@ -77,7 +76,7 @@ public void testRefresh() throws Exception {
7776
then(this.properties.getMessage()).isEqualTo("Foo");
7877
}
7978

80-
private String property(String name, String value) throws JsonProcessingException {
79+
private String property(String name, String value) {
8180
// Change the dynamic property source...
8281
Map<String, String> property = new HashMap<>();
8382
property.put("name", name);

0 commit comments

Comments
 (0)