the docs:

      Config for accessing the local datastore service in tests.
Default behavior is to configure the    local datastore to only store
data in-memory and not write anything to disk. tearDown() wipes out
all in-memory state so that the datastore is empty at the end of every
test.

    yes,but i want  the datastore IS NOT empty at the end of every
test.
    so I code:

      LocalDatastoreServiceTestConfig serviceTestConfig
=newLocalDatastoreServiceTestConfig();
     serviceTestConfig.setNoStorage(false);
     serviceTestConfig.setNoIndexAutoGen(false);

    and When I test " pm.makePersistent(ob);" the local_db.bin appear!
but there being no data in it, for I  code:
pm.newQuery(Ob.class).execute(); the size of the List is 0.

   and then I add "serviceTestConfig.setStoreDelayMs(1);"  and then
ervey time I  makePersistent(ob),there will being data in my
local_db.bin ,for i can query it!!!!!!

   So I want to know Why will this happen, or  I think the docs should
'alert' it!




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