Skip to content

Commit a2217e8

Browse files
izeyephilwebb
authored andcommitted
Restore shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHints()
See gh-44014 Signed-off-by: Johnny Lim <[email protected]>
1 parent 18a89f6 commit a2217e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/structured/StructuredLoggingJsonMembersCustomizerBeanFactoryInitializationAotProcessorTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ void shouldRegisterStructuredLoggingJsonMembersCustomizerRuntimeHints() {
6262
.accepts(hints);
6363
}
6464

65+
@Test
66+
void shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHintsWhenPropertiesAreNotSet() {
67+
MockEnvironment environment = new MockEnvironment();
68+
BeanFactoryInitializationAotContribution contribution = getContribution(environment);
69+
assertThat(contribution).isNull();
70+
}
71+
6572
@Test
6673
void shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHintsWhenCustomizerIsNotSet() {
6774
MockEnvironment environment = new MockEnvironment();

0 commit comments

Comments
 (0)