Use idiomatic AssertJ map assertions
See gh-31752
This commit is contained in:
committed by
Stéphane Nicoll
parent
47fe61ef79
commit
6f11716b6f
@@ -88,7 +88,7 @@ public class HandlersBeanDefinitionParserTests {
|
||||
assertThat(condition2).isTrue();
|
||||
SimpleUrlHandlerMapping shm = (SimpleUrlHandlerMapping) hm;
|
||||
|
||||
if (shm.getUrlMap().keySet().contains("/foo")) {
|
||||
if (shm.getUrlMap().containsKey("/foo")) {
|
||||
assertThat(shm.getUrlMap()).containsOnlyKeys("/foo", "/bar");
|
||||
WebSocketHttpRequestHandler handler = (WebSocketHttpRequestHandler) shm.getUrlMap().get("/foo");
|
||||
assertThat(handler).isNotNull();
|
||||
|
||||
Reference in New Issue
Block a user