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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to