Skip to content
Browse files

Set delegate first?

  • Loading branch information...
1 parent 4acb5dc commit 755f287c54c0c77411fde1c58fd243ae2ca0a10e @mrspandex committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/play/modules/gae/PlayDevEnvironment.java
View
2 src/play/modules/gae/PlayDevEnvironment.java
@@ -22,6 +22,7 @@ public static PlayDevEnvironment create() {
PlayDevEnvironment instance = new PlayDevEnvironment();
ApiProxyLocalFactory factory = new ApiProxyLocalFactory();
ApiProxyLocal proxy = factory.create(instance);
+ ApiProxy.setDelegate(proxy);
// Save datastore file in tmp/
LocalDatastoreServiceTestConfig datastoreConfig = new LocalDatastoreServiceTestConfig();
@@ -34,7 +35,6 @@ public static PlayDevEnvironment create() {
taskQueueConfig.setCallbackClass(LocalTaskQueueTestConfig.DeferredTaskCallback.class);
taskQueueConfig.setUp();
- ApiProxy.setDelegate(proxy);
return instance;
}

0 comments on commit 755f287

Please sign in to comment.
Something went wrong with that request. Please try again.