Using Spring mvc test and mockMvc to test Spring rest controller and its output in form of JSON and its JSON structure and JSON value.
I have two questions :)
- We have configured multiple profile in our application like dev, qa and prod and every environment returns different different output. Like for userId 1 will return different output based on profiles. So how can we perform Integration testing on different profiles.
- In integration testing I have to also test the structure of JSON as output. It can be different based on input for same end point. How can we proceed in it.
If someone has some idea. Please share. :)