Polish "Fix uri tag for empty path"

See gh-21392
This commit is contained in:
Stephane Nicoll 2020-05-25 13:50:39 +02:00
parent 3f372824ea
commit afcb5d54b2
1 changed files with 1 additions and 2 deletions

View File

@ -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");