You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2015/02/16 22:40:47 UTC

incubator-usergrid git commit: Fixes incorrect test wiring.

Repository: incubator-usergrid
Updated Branches:
  refs/heads/USERGRID-273 9d751c2c6 -> c1c5a06bc


Fixes incorrect test wiring.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/c1c5a06b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c1c5a06b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c1c5a06b

Branch: refs/heads/USERGRID-273
Commit: c1c5a06bc3256b202dd082bfa692204f38bb163e
Parents: 9d751c2
Author: Todd Nine <tn...@apigee.com>
Authored: Mon Feb 16 13:40:46 2015 -0800
Committer: Todd Nine <tn...@apigee.com>
Committed: Mon Feb 16 13:40:46 2015 -0800

----------------------------------------------------------------------
 .../usergrid/rest/management/ImportResourceIT.java       | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c1c5a06b/stack/rest/src/test/java/org/apache/usergrid/rest/management/ImportResourceIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/management/ImportResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/management/ImportResourceIT.java
index 61d61d1..0b87548 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/management/ImportResourceIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/management/ImportResourceIT.java
@@ -38,6 +38,8 @@ import org.apache.usergrid.rest.test.resource2point0.model.Collection;
 import org.apache.usergrid.rest.test.resource2point0.model.Entity;
 import org.apache.usergrid.rest.test.resource2point0.model.Organization;
 import org.apache.usergrid.rest.test.resource2point0.model.Token;
+import org.apache.usergrid.setup.ConcurrentProcessSingleton;
+
 import org.jclouds.ContextBuilder;
 import org.jclouds.blobstore.BlobStore;
 import org.jclouds.blobstore.BlobStoreContext;
@@ -75,12 +77,10 @@ public class ImportResourceIT extends AbstractRestIT {
 
     }
 
-    private static CassandraResource cassandraResource = CassandraResource.newWithAvailablePorts();
-
 
     @ClassRule
     public static final ServiceITSetup setup =
-        new ServiceITSetupImpl(cassandraResource, new ElasticSearchResource());
+        new ServiceITSetupImpl();
 
     @BeforeClass
     public static void setup() throws Exception {
@@ -88,9 +88,10 @@ public class ImportResourceIT extends AbstractRestIT {
         bucketPrefix = System.getProperty("bucketName");
 
         // start the scheduler after we're all set up
-        JobSchedulerService jobScheduler = cassandraResource.getBean(JobSchedulerService.class);
+        JobSchedulerService jobScheduler = ConcurrentProcessSingleton.getInstance().getSpringResource().getBean( JobSchedulerService.class );
         if (jobScheduler.state() != Service.State.RUNNING) {
-            jobScheduler.startAndWait();
+            jobScheduler.startAsync();
+            jobScheduler.awaitRunning();
         }
 
     }