Polish "Fix uri tag for empty path"

See gh-21392
pull/22022/head
Stephane Nicoll 5 years ago
parent 3f372824ea
commit afcb5d54b2

@ -63,8 +63,7 @@ class WebFluxTagsTests {
@Test
void uriTagValueIsRootWhenBestMatchingPatternIsEmpty() {
this.exchange.getAttributes().put(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE,
this.parser.parse(""));
this.exchange.getAttributes().put(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE, this.parser.parse(""));
this.exchange.getResponse().setStatusCode(HttpStatus.MOVED_PERMANENTLY);
Tag tag = WebFluxTags.uri(this.exchange);
assertThat(tag.getValue()).isEqualTo("root");

Loading…
Cancel
Save