I am using the GWTTestCase class and I must specify any servlets to use in the module.gwt.xml file with
<servlet path="/somepath" class="com.example.SomeServlet"/>.
The actual requirement is to load other servlets that initialize resources (using the method GenericServlet.init()) to run the tests. web.xml is an obvious choice, as it works with normal application setup. It would also be useful to declare initialization parameters.
How to get GWT to read web.xml file while doing unit testing?
source
share