-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ReleaseNotes27
- Added support for sending a request body in a GET request (issue 544).
- Changes to
com.jayway.restassured.filter.FilterContext, see Non-backward compatible changes. - Automatically adds supports for spring rest docs path parameter documentation if
spring-restdocs-mockmvcis in classpath. This can be disabled using the MockMvcConfig (issue 606).
-
Response content-type validation now works correctly even if the response body is empty
-
Taking DecoderConfig into account when parsing non-string content (issue 599)
-
It's now possible to supply MockMvcConfigurers when calling standaloneSetup in the Spring Mock MVC module. For example:
given().standaloneSetup(new Controller1(), springSecurity()). ..
-
It's now possible to change port, base path etc from a filter (issue 600)
-
Added support for specifying preemptive basic authentication for proxies. For example:
given().proxy(auth("username", "password")).when() ..where
authis statically imported from com.jayway.restassured.specification.ProxySpecification (issue 597).
- Changes to com.jayway.restassured.filter.FilterContext.
getRequestPathnow only returns the actual path of the request URI (previously this returned the request URI). NowgetRequestURIreturns the entire request URI (i.e. returns the same thing thatgetRequestPathpreviously did).
-
Deprecated the resultHandlers method in MockMvcRequestSpecification and added
applymethod to ValidatableMockMvcResponse which should be used instead. For example previously you didgiven(). resultHandlers(print()). when(). get("/x"). then(). ...
but now you do
when(). get("/x"). then(). apply(print())
(issue 607)
-
getCompleteRequestPathin FilterContext has been deprecated, usegetRequestURIinstead.
See change log for more details.