I am currently working on an integration test to validate the functionality of my REST endpoint for installing web apps. The unit tests I have written shows that the module works as expected when passed the right arguments but it misses out the request mapping, hence I have not been able to test that the route works when hit.
But they keep throwing up the warning sign that import cannot be resolved. I guess I am missing it in my dependencies but I have not been able to figure how to resolve this issue.
So I wasn’t aware that the HttpServletRequest and HttpServletRespones could get this done until about an hour ago. Trying to test that out but if you do have pointers to resources that can aid me. Please send them along.
@dkayiwa From my research and the documentation, I couldn’t get a means of making a mock request via the endpoint and getting the actual response back except I try to import the mockMVC I planned to do initially. Why I opted to write the client and test the endpoint via it.