http://code.google.com/intl/en/appengine/docs/java/tools/localunittesting.html#Writing_Datastore_Tests
 If you read the javadoc you'll learn that this involves configuring
the local Datastore service to keep all data in-memory (as opposed to
flushing to disk at regular intervals) and wiping out all in-memory
data at the end of every test.

In constructor:
LocalDatastoreServiceTestConfig dataStoreConfig = new
LocalDatastoreServiceTestConfig();
dataStoreConfig.setNoStorage(true);
helper = new LocalServiceTestHelper(dataStoreConfig);

On 17 фев, 00:26, Will Bunker <[email protected]> wrote:
> I have a section of code that uses both TaskQueue and Datastore
> services.  I can get one or the other working with:
>
>     private final LocalServiceTestHelper helper =
>         new LocalServiceTestHelper(new
> LocalDatastoreServiceTestConfig());
>
> or
>
>     private final LocalServiceTestHelper helper =
>         new LocalServiceTestHelper(new LocalTaskQueueTestConfig());
>
> how do I get both environments set up simultaneously so that my data
> is cleared and queues are functioning?

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