I'm using GWT 2.4. I have a number of test files that extend GwtTestCase. My question is, how and where do I place code so that the server side initializes some data before my tests run?
I tried creating a simple servlet ...
public class PopulateCacheServlet extends HttpServlet {
public void init(ServletConfig config) throws ServletException {
try {
PopulateCache.addTestEntriesToCache();
System.out.println("Dummy entries written to cache.");
} catch (Exception e) {
e.printStackTrace();
}
} // init
}
and adding its definition to my module's .gwt.xml file ...
<servlet path="/populatecache" class="com.myco.clearing.web.PopulateCacheServlet" />
but I'm noticing that this init method is never called.