Skip to content

Commit 43cda8f

Browse files
committed
Polish "Upgrade to Jackson Bom 3.0.0"
Closes gh-47569
1 parent 42c1c87 commit 43cda8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

module/spring-boot-jackson/src/test/java/org/springframework/boot/jackson/autoconfigure/JacksonAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,14 +594,14 @@ void whenUsingJackson2DefaultsShouldBeConfiguredUsingConfigureForJackson2() {
594594

595595
@Test
596596
void shouldFindAndAddModulesByDefault() {
597-
this.contextRunner.run((context) -> assertThat(context.getBean(JsonMapper.class).getRegisteredModules())
597+
this.contextRunner.run((context) -> assertThat(context.getBean(JsonMapper.class).registeredModules())
598598
.hasAtLeastOneElementOfType(KotlinModule.class));
599599
}
600600

601601
@Test
602602
void shouldNotFindAndAddModulesWhenDisabled() {
603603
this.contextRunner.withPropertyValues("spring.jackson.find-and-add-modules=false")
604-
.run((context) -> assertThat(context.getBean(JsonMapper.class).getRegisteredModules())
604+
.run((context) -> assertThat(context.getBean(JsonMapper.class).registeredModules())
605605
.doesNotHaveAnyElementsOfTypes(KotlinModule.class));
606606
}
607607

0 commit comments

Comments
 (0)