mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.0.x'
This commit is contained in:
@@ -30,6 +30,7 @@ dependencies {
|
||||
|
||||
optional(project(":core:spring-boot-autoconfigure"))
|
||||
optional(project(":core:spring-boot-test"))
|
||||
optional(project(":module:spring-boot-gson"))
|
||||
optional(project(":module:spring-boot-jackson"))
|
||||
optional(project(":module:spring-boot-jackson2"))
|
||||
optional(project(":module:spring-boot-kotlinx-serialization-json"))
|
||||
|
||||
+2
-1
@@ -20,6 +20,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.google.gson.Gson;
|
||||
import kotlinx.serialization.json.Json;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tools.jackson.databind.json.JsonMapper;
|
||||
@@ -150,7 +151,7 @@ class CodecsAutoConfigurationTests {
|
||||
@Test
|
||||
void kotlinSerializationUsesUnrestrictedPredicateWhenNoOtherJsonConverterIsAvailable() {
|
||||
FilteredClassLoader classLoader = new FilteredClassLoader(JsonMapper.class.getPackage().getName(),
|
||||
ObjectMapper.class.getPackage().getName());
|
||||
ObjectMapper.class.getPackage().getName(), Gson.class.getPackage().getName());
|
||||
this.contextRunner.withClassLoader(classLoader)
|
||||
.withUserConfiguration(KotlinxJsonConfiguration.class)
|
||||
.run((context) -> {
|
||||
|
||||
Reference in New Issue
Block a user