I was looking to do this with the datastore actually.

I just found a nice way of doing it (this will probably also work for
memcache...?)

At the beginning of you test case (in the main thread) put:
final Environment testEnvironment = ApiProxy.getCurrentEnvironment();

And then inside your other thread(s) put:
ApiProxy.setEnvironmentForCurrentThread(testEnvironment);

No Need to build a fake test environment from scratch :).

Cheers,
Gabriel

On Jul 11, 9:46 am, Frank Leon Rose <[email protected]> wrote:
> Gabriel,
>
> All the code is in my two prior posts. What happens when you run the test
> code above?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to