Skip to content

Commit 74a8fff

Browse files
izeyesnicoll
authored andcommitted
Polish LogbackRuntimeHintsRegistrarTests
See gh-31074
1 parent 7740e7b commit 74a8fff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackRuntimeHintsRegistrarTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,20 @@
4747
class LogbackRuntimeHintsRegistrarTests {
4848

4949
@Test
50-
void registersHintsForTypesCheckedByLogbackLoggingSystem() throws Exception {
50+
void registersHintsForTypesCheckedByLogbackLoggingSystem() {
5151
ReflectionHints reflection = registerHints();
5252
assertThat(reflection.getTypeHint(LoggerContext.class)).isNotNull();
5353
assertThat(reflection.getTypeHint(SLF4JBridgeHandler.class)).isNotNull();
5454
}
5555

5656
@Test
5757
void registersHintsForBuiltInLogbackConverters() throws Exception {
58-
RuntimeHints hints = new RuntimeHints();
59-
new LogbackRuntimeHintsRegistrar().registerHints(hints, getClass().getClassLoader());
6058
ReflectionHints reflection = registerHints();
6159
assertThat(logbackConverters()).allSatisfy(registeredForPublicConstructorInvocation(reflection));
6260
}
6361

6462
@Test
65-
void registersHintsForSpringBootConverters() throws IOException, ClassNotFoundException, LinkageError {
63+
void registersHintsForSpringBootConverters() throws LinkageError {
6664
ReflectionHints reflection = registerHints();
6765
assertThat(List.of(ColorConverter.class, ExtendedWhitespaceThrowableProxyConverter.class,
6866
WhitespaceThrowableProxyConverter.class))

0 commit comments

Comments
 (0)