I successfully built integration testing environments for Spring MVC REST services using Mock MVC without the need for deployment. I am struggling to do the same with JAX-RS services.
REST Guaranteed appearance looks promising, but seems to require deployment. The test suite can start the CXF server, but can it connect it to the servlet container?
It seems that the unique value provided by Mock MVC is in its mock servlet container. Does this provide any other technology.
The CXF JAX-RS Testing Page page contains a template for entering the HttpServletRequest layout in the CXF invoker. Which made me think ...
Spring MVC servlet elements ( MockHttpServletRequest , etc.) come from the spring -test module , independent of Mock MVC. Can we embed these objects in the CXF invoker? Or will it be a rabbit hole?
Has anyone come up with a solution to this problem?
.
source
share