views:

242

answers:

2

I am testing my gae java jdo routines in eclipse.

The actual question is, how to clear/clean out the localhost development datastore so that I could start with a virgin datastore for a new cycle of tests?

Addional info - For those who don't know: GAE = google app engine, google's "hosting solution" for java and python applications.

+3  A: 

http://code.google.com/appengine/docs/java/tools/devserver.html#Using%5Fthe%5FDatastore

The file is named local_db.bin, and it is created in your application's WAR directory, in the WEB-INF/appengine-generated/ directory.

Nate
A: 

Are you using a testing framework, for example, JUnit? I have a @Before annotated method in my test classes and it runs before each @Test method, and the @Before method verifies that the local datastore is empty. So for each test method it's verifying that it's emtpy and then reloading my test data. I don't understand why you need to clear the local datastore.

Lumpy Oatmeal