Restore shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHints()

See gh-44014

Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
Johnny Lim 2025-01-29 19:22:47 +09:00 committed by Phillip Webb
parent 18a89f6007
commit a2217e85fe
1 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,13 @@ class StructuredLoggingJsonMembersCustomizerBeanFactoryInitializationAotProcesso
.accepts(hints);
}
@Test
void shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHintsWhenPropertiesAreNotSet() {
MockEnvironment environment = new MockEnvironment();
BeanFactoryInitializationAotContribution contribution = getContribution(environment);
assertThat(contribution).isNull();
}
@Test
void shouldNotRegisterStructuredLoggingJsonMembersCustomizerRuntimeHintsWhenCustomizerIsNotSet() {
MockEnvironment environment = new MockEnvironment();