Polishing contribution

Closes gh-29634
This commit is contained in:
rstoyanchev
2022-12-09 10:24:42 +00:00
parent 5ac97b16a8
commit 39d4d2041a
4 changed files with 20 additions and 30 deletions

View File

@@ -346,9 +346,9 @@ public class RequestMappingInfoHandlerMappingTests {
}
@Test
public void handleNoMatchEmptyRequestMappingInfo() throws Exception {
ServerWebExchange exchange = MockServerWebExchange.from(post("/bar"));
@Test // gh-29611
public void handleNoMatchWithoutPartialMatches() throws Exception {
ServerWebExchange exchange = MockServerWebExchange.from(post("/non-existent"));
HandlerMethod handlerMethod = this.handlerMapping.handleNoMatch(new HashSet<>(), exchange);
assertThat(handlerMethod).isNull();