-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Neil S opened SPR-15081 and commented
There seems to be no common API which can be configure to do mock HTTP tests as well as real HTTP tests.
MockMvc tests suffice during development but for production deployment projects might like to do a complete end-to-end integration test by run real tests against a the (maybe embedded) container sever which will be used in production.
At the moment that means writing the same tests twice using the MockMvc and then TestRestTemplate+assert APIs.
IMHO MockMvc has the friendlier API which results in concise and easier to read test code.
Affects: 4.3.5
Issue Links:
- Extract MockHttp from MockMvc [SPR-13818] #18391 Extract MockHttp from MockMvc
- Support varargs for expectations in MockMvc [SPR-16417] #20963 Support varargs for expectations in MockMvc
0 votes, 6 watchers
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement