yes, i can confirm that i saw the same issue here in my unit test, where i then had to mock out the task queue calls in order to make it work, but would be nicer if it would run out of the box
On Oct 28, 10:08 am, Patrizio Munzi <[email protected]> wrote: > Hi all, > > I'm getting the following exception using Task Queues in Unit Tests: > > ---------------------------------- > com.google.apphosting.api.ApiProxy$CallNotFoundException: The API > package 'taskqueue' or call 'Add()' was not found. > at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:77) > at > com.google.appengine.api.labs.taskqueue.QueueApiHelper.makeSyncCall(QueueApiHelper.java:23) > at > com.google.appengine.api.labs.taskqueue.QueueImpl.add(QueueImpl.java:188) > at > com.eris4.warp4.callfriends.server.taskqueue.MultiOperationsTask.enqueue(MultiOperationsTask.java:73) > at > com.eris4.warp4.callfriends.server.taskqueue.MultiOperationsTask.enqueue(MultiOperationsTask.java:66) > at > com.eris4.warp4.callfriends.server.taskqueue.MultiOperationsTask.enqueue(MultiOperationsTask.java:66) > at > com.eris4.warp4.callfriends.unittest.server.taskqueue.MultiOperationsTaskTest.testOver10000BytesTaskSize(MultiOperationsTaskTest.java:33) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at junit.framework.TestCase.runTest(TestCase.java:164) > at junit.framework.TestCase.runBare(TestCase.java:130) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:120) > at junit.framework.TestSuite.runTest(TestSuite.java:230) > at junit.framework.TestSuite.run(TestSuite.java:225) > at > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > --------------------------------- > > My classpath already contains the jars: > - appengine-local-runtime.jar > - appengine-api-stubs.jar > - appengine-api-labs.jar > > Regards, > Patrizio --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
