Ok, I kept trying things until I found something that worked.  The 
information is in a few posts out there as they touch on related issues.

In each thread I call
    ApiProxy.setEnvironmentForCurrentThread(testEnvironment);

The testEnvironment is just
    Environment testEnvironment = new Environment() {
        // Implementations of all Environment value getters.  Specifically, 
return "test" for appid in order to match default Environment 
implementation.
    }

http://code.google.com/appengine/docs/java/tools/localunittesting.html no 
longer refers to Environment, but it's clearly still important for 
multi-threaded testing.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/StJcoasRCjgJ.
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