Thursday, September 1, 2011

Unit testing classes that depends on RequestFactory

How are you guys dealing with unit tests of classes that uses request factory?

I started mocking the requestfactory and requestcontexts interfaces, but I'm not satisfied with this because it requires a lot of code just to set up things

I searched a bit and found RequestFactorySource class, which create implementations of RequestFactory to run on the JVM. I thought about using it with a service layer decorator that return mocks on the createServiceInstance() method. The mocks would be created and controlled by Mockito

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

No comments:

Post a Comment