Andy Wilkinson
d7b5681b59
Merge branch '2.0.x'
2022-01-12 12:51:52 +00:00
Andy Wilkinson
a0dd2f0c2e
Remove test dependency on Spring HATEOAS
2022-01-12 12:48:36 +00:00
Andy Wilkinson
5dd1bd4beb
Merge branch '2.0.x'
2022-01-10 10:55:24 +00:00
Andy Wilkinson
350a4c65e3
Align fileUpload and multipart methods with MockMvc
...
Closes gh-770
2022-01-10 10:54:12 +00:00
Andy Wilkinson
0f484e6644
Merge branch '2.0.x'
2021-11-18 15:41:04 +00:00
Andy Wilkinson
68a981388a
Exclude unwanted commons-logging dependencies
...
Closes gh-757
2021-11-18 14:47:35 +00:00
Andy Wilkinson
da98852d53
Upgrade to Spring Java Format 0.0.29
2021-11-17 11:18:00 +00:00
Andy Wilkinson
4223f70102
Upgrade to Spring Framework 6 and Jakarta EE 9
...
Closes gh-750
Closes gh-748
2021-11-17 11:18:00 +00:00
Andy Wilkinson
ea3ac32701
Make use of Gradle's support for test fixtures
...
Closes gh-756
2021-09-28 10:08:24 +01:00
Andy Wilkinson
bf1bfc4075
Fix optional dependencies having compile scope in poms
...
Closes gh-729
2021-06-15 10:59:25 +01:00
Andy Wilkinson
09b21a91ed
Adopt compatibility testing plugin
...
Closes gh-728
2021-05-21 18:08:07 +01:00
Andy Wilkinson
2ead1fb0d8
Upgrade to Gradle 6.8 and modernize the build
...
Closes gh-719
2021-04-28 20:59:20 +01:00
Andy Wilkinson
3161f10b51
Start testing against Spring Framework 5.3
...
Closes gh-695
2020-09-02 11:17:22 +01:00
Andy Wilkinson
513a0e9172
Tolerate breaking change in MockHttpServletRequestBuilder
...
Closes gh-675
2020-03-27 16:19:06 +00:00
Andy Wilkinson
1ee96bbb76
Make tests tolerate varying presence of Content-Length header
...
In Framework 5.2, the Content-Length is now provided by MockMvc. In
earlier versions it is not. This commit updates the tests to tolerate
this difference in behaviour so that the compatibility tests pass
again.
2019-12-18 17:43:35 +00:00
Andy Wilkinson
97ddf3dcec
Fix handling of empty querty string parameters
...
Previously empty parameters in a query string were handled
inconsistently such that they sometimes had a value of "" in a list
and sometimes were represented as an empty list. This inconsistency
lead to the parameter appearing twice in the cURL request snippet.
This commit removes the inconsistency by always using an empty string
to represent an empty query parameter value.
Fixes gh-647
2019-10-04 18:34:56 +01:00
Andy Wilkinson
3a5cc58fab
Test against Spring Framework 5.2
2019-09-15 15:03:50 +01:00
Andy Wilkinson
ef0973c548
Test against latest Framework 5.1 snapshot
...
This updates REST Docs to test against Framework's latest 5.1
snapshot. Due to a bug in the behaviour of HttpHeaders' key set [1],
HeaderRemovingOperationPreprocessor has been updated to no longer use
it when removing headers from a request or response prior to it being
documented.
[1] https://github.com/spring-projects/spring-framework/issues/22821
2019-09-14 17:38:29 +01:00
Andy Wilkinson
3597ebc35a
Allow responses with non-standard status codes to be documented
...
Fixes gh-639
2019-09-12 17:03:21 +01:00
Andy Wilkinson
fce255695e
Polish "Improve diagnostics for null configuration"
...
See gh-583
2019-08-30 17:14:42 +01:00
Dmytro Nosan
b5f2454c00
Improve diagnostics for null configuration
...
See gh-583
2019-08-30 17:09:27 +01:00
Andy Wilkinson
cc22dbfe26
Merge branch '1.2.x'
2019-08-30 11:20:34 +01:00
Andy Wilkinson
508b3d6593
Upgrade to Spring Java Format 0.0.15
2019-08-30 11:07:04 +01:00
Andy Wilkinson
09a4323ed5
Merge branch '1.2.x'
2019-03-19 11:42:23 +00:00
Andy Wilkinson
3282a798cb
Merge branch '1.1.x' into 1.2.x
2019-03-19 11:35:06 +00:00
Andy Wilkinson
f7e61013bb
Merge branch '1.0.x' into 1.1.x
2019-03-19 11:24:34 +00:00
Andy Wilkinson
75132b537a
Use HTTPS to link to Apache license
2019-03-19 11:21:34 +00:00
Andy Wilkinson
fad2dff977
Merge branch '1.2.x'
2018-08-08 16:51:28 +01:00
Andy Wilkinson
244a734232
Adopt Spring Java Format for code formatting and style
2018-08-08 14:08:15 +01:00
Andy Wilkinson
ceb844183d
Merge branch '1.2.x'
2018-08-08 12:27:43 +01:00
Andy Wilkinson
7431426cf3
Update tests to use AssertJ
...
Closes gh-537
2018-08-08 11:22:57 +01:00
Andy Wilkinson
a60b87990b
Tolerate changes to request body reading in Framework 5.1
...
Previously, MockHttpServletRequest allowed its body to be ready
multiple times using its InputStream. As of recent Spring Framework
5.1 snapshots, this is no longer the case.
This commit moves to directly accessing the request's content as a
byte array using getContentAsByteArray() which was introduced in
Framework 5.0.
Closes gh-515
2018-06-17 12:55:56 +01:00
Andy Wilkinson
7f91d5f2e5
Merge branch '1.2.x'
2018-03-27 14:13:45 +01:00
Johnny Lim
da64c55fce
Add HTTP method option unconditionally in curl command
...
Closes gh-488
2018-03-27 14:07:47 +01:00
Andy Wilkinson
e84aa86171
Merge branch '1.2.x'
2018-03-27 13:01:20 +01:00
Andy Wilkinson
95c4234c99
Format core code with Eclipse Oxygen's formatter
2018-03-27 12:53:34 +01:00
Andy Wilkinson
eed90c0b9a
Polish "Add support for configuring default request and response preprocessors"
...
Closes gh-424
2017-10-27 12:09:56 +01:00
Filip Hrisafov
4f8b173836
Add support for configuring default request and response preprocessors
...
See gh-424
2017-10-27 12:09:56 +01:00
Andy Wilkinson
4e99df6b75
Merge branch '1.2.x'
2017-09-23 17:20:55 +01:00
Andy Wilkinson
7c6c2e7523
Polish
2017-09-23 17:20:03 +01:00
Andy Wilkinson
6986cb75a8
Remove deprecated code
...
Closes gh-387
2017-05-19 09:27:06 +02:00
Andy Wilkinson
41d537d06a
Raise the minimum supported version of Spring Framework to 5.0
...
This commit upgrades to Spring Framework 5.0.0.RC1. It also upgrades
the Spring Boot-based samples to use Spring Boot 2.0.0.M1 which
supports Spring Framework 5. Lastly, it upgrades a number of
third-party dependencies to align with Spring Framework 5 and Spring
Boot 2.
Closes gh-386
2017-05-18 16:46:03 +02:00
Andy Wilkinson
d6eacfd819
Avoid duplicate cookies with Spring Framework 5's MockMvc
...
Closes gh-390
2017-04-26 11:57:18 +01:00
Andy Wilkinson
704257e93b
Align generated Set-Cookie header with RFC 6265
...
Closes gh-378
2017-04-07 16:59:49 +01:00
Andy Wilkinson
a6d322007b
Polish "Provide more control of formatting of curl and HTTPie commands"
...
See gh-348
Closes gh-260
2017-03-20 20:11:31 +00:00
Tomasz Kopczynski
2cb9d36ef1
Line breaks in cURL and HTTPie snippets
...
Closes gh-260
2017-03-20 20:11:31 +00:00
Andy Wilkinson
d486a16714
Reduce the complexity of MockMvcResponseConverter.generateSetCookieHeader
2017-03-13 21:28:20 +00:00
Andy Wilkinson
1b5e75ff2c
Polish "Include cookies in the HTTP response snippet"
...
See gh-340
Closes gh-305
2017-03-13 20:46:05 +00:00
Tomasz Kopczynski
46190535f7
Include cookies in the HTTP response snippet
...
See gh-305
Closes gh-340
2017-03-13 20:44:33 +00:00
Andy Wilkinson
e9ceeacd66
Merge branch '1.1.x'
2017-03-04 21:05:07 +00:00