Use AssertJ isInstanceOf where feasible

See gh-31694
This commit is contained in:
Yanming Zhou
2023-11-27 16:26:59 +08:00
committed by Stéphane Nicoll
parent 4e2d357318
commit 64d5e904e8
2 changed files with 5 additions and 5 deletions

View File

@@ -243,7 +243,7 @@ public class HandlersBeanDefinitionParserTests {
if (handler instanceof WebSocketHandlerDecorator) {
handler = ((WebSocketHandlerDecorator) handler).getLastHandler();
}
assertThat(handlerClass.isInstance(handler)).isTrue();
assertThat(handler).isInstanceOf(handlerClass);
}
}