Kathiravan, Have you seen RequestFactoryTest.testInstanceServiceRequest()? It calls a service that is annotated with a ServiceLocator. Is that what you're looking for?
/dmc On Thu, Mar 17, 2011 at 8:12 PM, Kathiravan Tamilvanan <[email protected]>wrote: > We have used EntityLocator and ServiceLocator with our Application's > RequestFactory. Now that we want to unit test the implementation, What is > the best way to unit test ? > I have looked at RequestFactoryMagic which creates InProcessRequestFactory > but not quiet sure how that applies to a ServiceLocator approach. > > Here is my thought. > > 1. Insert test data in to in memory database > 2. Create RequestFactory Instance > 3. Call a method on a Request object ( This is where the problem is, If > the request is to query a table on the database using the ServiceLocator. it > does not work. ) > 4. Verify the result. > > Any pointers? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
