Closed sudr closed 6 years ago
Thank you for opening the issue. It has been on our TODO list for a while. We can not provide any pointers yet, but plan to take a look in the next few days to see how much work it is and where to start.
In a MockMVC test, the entry point for the introspection is the HandlerMethod. We get the HandlerMethod instance with the following steps:
When using Rest Assured, one only gets information about the HTTP request and response and no additional information about the MVC method. This information can be retrieved via a filter: https://github.com/rest-assured/rest-assured/blob/master/rest-assured/src/main/java/io/restassured/filter/Filter.java#L44 and the following information can be retrived from the request: https://github.com/rest-assured/rest-assured/blob/master/rest-assured/src/main/java/io/restassured/specification/FilterableRequestSpecification.java Example a Spring REST Docs test with Rest Assured: https://github.com/spring-projects/spring-restdocs/blob/master/samples/rest-assured/src/test/java/com/example/restassured/SampleRestAssuredApplicationTests.java
So the question is on how to get to the HandlerMethod instance that is tested. An inconvenient option is to add a manual pointer to each test.
idle issue, closing.
This is to track work towards supporting Rest Assured. Pointers to how to get started with this will be helpful.