views:

16

answers:

1

Hi experts.

Now I'm working on a spring web-flow unit test. I have to retrieve "HttpServletRequest" from MockExternalContext. But MockExternalContext don't support providing HttpServletRequest.How can I do to solve this problem

A: 

MockHttpServletRequest is not a wrapper around HttpServletRequest, but rather its substitution for unit tests without servlet container. It can give you everything HttpServletRequest gives. Can you describe why do you need HttpServletRequest?

denis_k

related questions