Use AssertJ isInstanceOf where feasible
See gh-31694
This commit is contained in:
committed by
Stéphane Nicoll
parent
4e2d357318
commit
64d5e904e8
@@ -243,7 +243,7 @@ public class HandlersBeanDefinitionParserTests {
|
||||
if (handler instanceof WebSocketHandlerDecorator) {
|
||||
handler = ((WebSocketHandlerDecorator) handler).getLastHandler();
|
||||
}
|
||||
assertThat(handlerClass.isInstance(handler)).isTrue();
|
||||
assertThat(handler).isInstanceOf(handlerClass);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user