[appengine-java] Re: How to location my service in Unit testing?

2009-09-23 Thread leszek
You need to have your data access method separated from servlet code or RPC (if GWT is used) code. Assume that you have something like: class Customer { private Key customerId; ... } class MyDataAccessService { public void addCustomer(Customer c) { ... } and you want to test it.

[appengine-java] Re: How to location my service in Unit testing?

2009-09-23 Thread Donny
Got it, really appreciate your detailed demo, thanks.:) On Sep 23, 6:15 pm, leszek leszek.ptokar...@gmail.com wrote: You need to have your data access method separated from servlet code or RPC (if GWT is used) code. Assume that you have something like: class Customer  {   private Key

[appengine-java] Re: How to location my service in Unit testing?

2009-09-22 Thread Donny
Oh, I think I got a misunderstanding. In that article, the service means that the services provided by appengine, right? the article is telling how to use appengine's service in test mode, right? I treat the service as the service I developed so I try to locate my service that implements

[appengine-java] Re: How to location my service in Unit testing?

2009-09-21 Thread Jason (Google)
Are you importing the class correctly? In the mail example, you can see that it depends on the class Bug which is in the same package as the BugNotificationTest class. If you import your classes, assuming they're in a different package, you should be able to use them in your tests. If you can be