Skip to content

Commit

Permalink
Upgrade to Jackson 2.18.0
Browse files Browse the repository at this point in the history
Closes gh-42480
  • Loading branch information
wilkinsona committed Oct 1, 2024
1 parent 42ad6dd commit 842afa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ checkstyleToolVersion=10.12.4
commonsCodecVersion=1.17.1
graalVersion=22.3
hamcrestVersion=2.2
jacksonVersion=2.17.2
jacksonVersion=2.18.0
javaFormatVersion=0.0.43
junitJupiterVersion=5.11.0
kotlinVersion=1.9.25
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import com.fasterxml.jackson.databind.cfg.JsonNodeFeature;
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import com.fasterxml.jackson.databind.util.StdDateFormat;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;
import org.assertj.core.api.InstanceOfAssertFactories;
Expand Down Expand Up @@ -318,7 +319,8 @@ void moduleBeansAndWellKnownModulesAreRegisteredWithTheObjectMapperBuilder() {
this.contextRunner.withUserConfiguration(ModuleConfig.class).run((context) -> {
ObjectMapper objectMapper = context.getBean(Jackson2ObjectMapperBuilder.class).build();
assertThat(context.getBean(CustomModule.class).getOwners()).contains(objectMapper);
assertThat(objectMapper.canSerialize(Baz.class)).isTrue();
assertThat(((DefaultSerializerProvider) objectMapper.getSerializerProviderInstance())
.hasSerializerFor(Baz.class, null)).isTrue();
});
}

Expand Down

0 comments on commit 842afa4

Please sign in to comment.