Friday, September 2, 2011

Re: Re: Aw: Unit testing classes that depends on RequestFactory

It doesn't "has to", but that way you're really, really sure that the cache is local to the CachingServiceLayer instance (in case you forget to clear the field in another test running in parallel, it might thus reuse the same cache, so it might populate it with its own services before your test uses them).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CxiEvC3hOhcJ.
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