Closed wilkinsona closed 2 weeks ago
@wilkinsona is there an artifact available that I can use to crosscheck my tests? It doesn't seem to come with 3.0.1.
That's to be expected as 3.0.1 was released in November 2023. Please try with 3.0.2-SNAPSHOT that's available from https://repo.spring.io/snapshot.
Thx. Works like a charm.
That's good to hear. Thanks for trying the snapshot.
It works if you use
MockMvcTester.perform(RequestBuilder)
andRestDocumentationRequestBuilders
but this loses much of the benefit ofMockMvcTester
as you then can't use its fluent API to build the request.https://github.com/spring-projects/spring-framework/issues/33509 will make the URI template, if any, available from
MockHttpServletRequest
. REST Docs should use it with Framework 6.2. This will allow the fluentMockMvcTester
API to be used to build the request and also remove the need forRestDocumentationRequestBuilders
when using Framework 6.2.