I have not found any solution to user the local_db.bin file generated
by my unit test in my local server.
I have a solution by using the RemoteAPI.
Only replace:

LocalServiceTestHelper helper = new LocalServiceTestHelper(new
LocalDatastoreServiceTestConfig());
helper.setUp();

by

RemoteApiOptions options = new RemoteApiOptions()
    .server("localhost", 8888)
    .credentials("XXXX", "XXXX");
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);

Don't forget to install the remote API servlet and start your local
server

PA



On 23 mai, 23:45, pavb <[email protected]> wrote:
> Hello
>
> I have a problem to initiate my local datastore with test data.
> I have created a unit test to populate my local datastore and create
> the file local_db.bin. (ApplicationId and versionId correctly set)
> Everything looks ok. But when I use this binary file with the local
> server in the war/WEB-INF/appengine-generated I can not browse my
> entities. Nothing is displayed with the admin console.
> I can create entities directly from my application and these ones are
> visible.
>
> Could you help me please?
>
> Thanks
>
> PA

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

Reply via email to