i havent unit tested with JDO but with JPA.
But i expect it to work the same.

the example on the 
http://code.google.com/appengine/docs/java/tools/localunittesting.html
is using the datastoreService, since u are using JDO u will need a
persistence manager.

no need for 'Entity' just use JDO or JPA.

The magic is done by the LocalServiceTestHelper.setup

so your problem is the error  below

>java.lang.NullPointerException: No API environment is registered for
>this thread".

This means there is no datastore attached to your pm.

Post your code for test setup and pm initialisation.

-lp

-- 
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-java@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