Finally found the problem that in documentation its not mentioned that
few of the jars need to be included. They did mention few but not all,
may be documentation need to be fixed.
So it worked now. but now getting another problem, data is not being
persisted in local file. I am using following code
                testLocalDatastoreServiceTestConfig = new
LocalDatastoreServiceTestConfig();
                testLocalDatastoreServiceTestConfig.setBackingStoreLocation("C:\
\test.bin");
                testLocalDatastoreServiceTestConfig.setNoStorage(false);
                testHelper = new
LocalServiceTestHelper(testLocalDatastoreServiceTestConfig);

It tells me
The backing store, c:\test.bin, does not exist. It will be created.
But it is never created and i can see through logs that entity i
created was actually worked as i could print Key id field of it. which
comes as User(1), but then i can not query it using Id or any other
field as it was never persisted on file system.

Can you please help. I am using SDK 1.3.3

Thanks,
Ravi.


On May 18, 8:25 pm, Ravi Sharma <ping2r...@gmail.com> wrote:
> Hi,
> First time i am trying to run local junit test in eclipse. I am following
> exactly what is written 
> herehttp://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 
> linkhttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> (Max Ross's Reply))
>
> Is any thing missing on Docs on this 
> linkhttp://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 google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to