You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider adding a new location() API to HttpHeadersAssert #37489
However, inspired by location(String) in AbstractHeaderAssertions and getLocation() in HttpHeaders, I could imagine an improvement for the first part as well:
assertThat(RestTestClientResponse.from(spec))
.hasStatus(HttpStatus.FOUND)
.headers()
.location() // new API that returns AssertJ's AbstractUriAssert
.hasScheme("http")
.hasHost("127.0.0.1")
.hasPort(8081)
.hasParameter("param", "value")
.hasParameter("number")
.hasNoParameter("error"));
Would you be open to adding a new location() API to HttpHeadersAssert? I'd be happy to submit a PR.
Activity