You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-pl...@googlegroups.com
I’d like to test my app. I am familiar with unit testing but not in a GWTP context. I have a servlet that I want to test. The servlet is like this:
public class MyServlet extends HttpServlet {
private final Provider<MyDao> daoProvider;
@Inject
public MyServlet(final Provider<MyDao> daoProvider) {
this.daoProvider = daoProvider;
}
@Override
public void doPost(...) {
MyDao dao = daoProvider.get();
List<A> list = dao.getAs();
for(A a: list) {
// Process on A
a.setNewValue(newValue);
}
// Save in the datastore the modification
dao.updateList(list);
}
How would you test that the process on the list of A has been done correctly?