Hi,
First time i am trying to run local junit test in eclipse. I am following
exactly what is written here
http://code.google.com/appengine/docs/java/tools/localunittesting.html
but no use, i am getting following error.
com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package
'datastore_v3' or call 'RunQuery()' was not found.
at
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:284)
at
com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:264)
at
java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at
java.util.concurrent.Executors$PrivilegedCallable.call(Executors.java:460)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)Query Ran
Succesfully
Returning results
Tear Down
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
I searched on GAE group and found few things like i need to include
following code in the setup and tear method. I dont see these methodas in
documentation.. Also i tried to add in my code but then i dont find in app
engine jars. So dont know what to do.
ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());
and
ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")){});
(Taken from this link
http://groups.google.com/group/google-appengine-java/browse_thread/thread/90f60cc91cce5a9b/c63759388c1ef9bf?lnk=raot
(Max Ross's Reply))
Is any thing missing on Docs on this link
http://code.google.com/appengine/docs/java/tools/localunittesting.html, as i
am following it exactly written or may be my eyes are not able to find what
i am missing.
Please help.
Thanks,
Ravi.
--
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.