Re: [appengine-java] Testing a remoteService that execute datastore operations

2010-07-12 Thread Miroslav Genov
Hello, You have to use the LocalServiceTestHelper class to manage datastore,memcache, task queues and etc. Here is one example that could help you find out how to use it: class UserServiceImplTest extends TestCase { private LocalServiceTestHelper helper = new LocalServiceTestHelper(

[appengine-java] Testing a remoteService that execute datastore operations

2010-07-12 Thread poe
Hi everyone, i want to test a remoteService that performs operations on a datastore with jdo. For example: public class UserServiceImpl extends RemoteServiceServlet implements UserService { public User addUser(User u) { PersistenceManager pm = PMF.get().getPersistenceManage