Fix assertion in HandlerMethodMappingTests.unregisterMapping()

This commit is contained in:
Sam Brannen
2019-09-03 11:59:43 +02:00
parent e79bda164e
commit bf758eab33

View File

@@ -19,7 +19,6 @@ package org.springframework.web.reactive.result.method;
import java.lang.reflect.Method;
import java.util.Comparator;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
@@ -137,7 +136,7 @@ public class HandlerMethodMappingTests {
result = this.mapping.getHandler(MockServerWebExchange.from(MockServerHttpRequest.get(key)));
assertThat(result.block()).isNull();
assertThat(this.mapping.getMappingRegistry().getMappings().keySet()).isNotEqualTo(Matchers.contains(key));
assertThat(this.mapping.getMappingRegistry().getMappings().keySet()).doesNotContain(key);
}