google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

Add the possibility to mock HttpServletRequest, HttpServletResponse, ServletConfig and ServletContext #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It should be possible to provide custom, easymock or mockito mock for all JEE's 
servlet API objects, which are uses (for example) in 
AbstractRemoteServiceServlet 

Original issue reported on code.google.com by gael.laz...@gmail.com on 22 Apr 2012 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 7 May 2012 at 11:57

GoogleCodeExporter commented 9 years ago
A new ServletMockProvider interface is now available in the lastest 
0.39-SNAPSHOT I've just deployed.

A custom implementation of this interface can be set through 
GwtTest.setServletMockProvider(..) protected method at the begining of each 
unit test

Original comment by gael.laz...@gmail.com on 7 May 2012 at 12:56