Skip to content

Commit bf758ea

Browse files
committed
Fix assertion in HandlerMethodMappingTests.unregisterMapping()
1 parent e79bda1 commit bf758ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/HandlerMethodMappingTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.lang.reflect.Method;
2020
import java.util.Comparator;
2121

22-
import org.hamcrest.Matchers;
2322
import org.junit.jupiter.api.BeforeEach;
2423
import org.junit.jupiter.api.Test;
2524
import reactor.core.publisher.Mono;
@@ -137,7 +136,7 @@ public void unregisterMapping() throws Exception {
137136
result = this.mapping.getHandler(MockServerWebExchange.from(MockServerHttpRequest.get(key)));
138137

139138
assertThat(result.block()).isNull();
140-
assertThat(this.mapping.getMappingRegistry().getMappings().keySet()).isNotEqualTo(Matchers.contains(key));
139+
assertThat(this.mapping.getMappingRegistry().getMappings().keySet()).doesNotContain(key);
141140
}
142141

143142

0 commit comments

Comments
 (0)