Polish mutateContextPathWithoutUpdatingPathShouldFail()

Closes gh-25352
This commit is contained in:
Johnny Lim 2020-07-01 19:01:16 +09:00 committed by Brian Clozel
parent 85a46882ce
commit 72e92211ce
1 changed files with 2 additions and 2 deletions

View File

@ -184,9 +184,9 @@ public class ServerHttpRequestTests {
void mutateContextPathWithoutUpdatingPathShouldFail() throws Exception {
ServerHttpRequest request = createRequest("/context/path", "/context");
assertThatThrownBy(() -> request.mutate().path("/fail").build())
assertThatThrownBy(() -> request.mutate().contextPath("/fail").build())
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Invalid contextPath '/context': must match the start of requestPath: '/fail'");
.hasMessage("Invalid contextPath '/fail': must match the start of requestPath: '/context/path'");
}
private ServerHttpRequest createRequest(String uriString) throws Exception {