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 2014/11/12 20:12:00 UTC
[19/27] incubator-usergrid git commit: Fixes test setup. Tests still
broken
Fixes test setup. Tests still broken
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/8ae98f82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/8ae98f82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/8ae98f82
Branch: refs/heads/two-dot-o
Commit: 8ae98f82f87c2ee632de0de5436d7b29931b8294
Parents: 500a327
Author: Todd Nine <tn...@apigee.com>
Authored: Mon Nov 10 18:12:43 2014 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Mon Nov 10 18:12:43 2014 -0700
----------------------------------------------------------------------
.../org/apache/usergrid/persistence/GeoIT.java | 25 +++++++-------------
1 file changed, 8 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8ae98f82/stack/core/src/test/java/org/apache/usergrid/persistence/GeoIT.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/GeoIT.java b/stack/core/src/test/java/org/apache/usergrid/persistence/GeoIT.java
index e07eeda..7e4493c 100644
--- a/stack/core/src/test/java/org/apache/usergrid/persistence/GeoIT.java
+++ b/stack/core/src/test/java/org/apache/usergrid/persistence/GeoIT.java
@@ -52,10 +52,10 @@ public class GeoIT extends AbstractCoreIT {
public void testGeo() throws Exception {
LOG.info( "GeoIT.testGeo" );
- UUID applicationId = setup.createApplication( "testOrganization", "testGeo" );
- assertNotNull( applicationId );
- EntityManager em = setup.getEmf().getEntityManager( applicationId );
+
+
+ EntityManager em = app.getEntityManager();
assertNotNull( em );
// create user at a location
@@ -212,10 +212,8 @@ public class GeoIT extends AbstractCoreIT {
@Test
public void testPointPaging() throws Exception {
- UUID applicationId = setup.createApplication( "testOrganization", "testPointPaging" );
- assertNotNull( applicationId );
- EntityManager em = setup.getEmf().getEntityManager( applicationId );
+ EntityManager em = app.getEntityManager();
assertNotNull( em );
// save objects in a diagonal line from -90 -180 to 90 180
@@ -276,10 +274,7 @@ public class GeoIT extends AbstractCoreIT {
@Test
public void testSamePointPaging() throws Exception {
- UUID applicationId = setup.createApplication( "testOrganization", "testSamePointPaging" );
- assertNotNull( applicationId );
-
- EntityManager em = setup.getEmf().getEntityManager( applicationId );
+ EntityManager em = app.getEntityManager();
assertNotNull( em );
// save objects in a diagonal line from -90 -180 to 90 180
@@ -326,10 +321,9 @@ public class GeoIT extends AbstractCoreIT {
@Test
public void testDistanceByLimit() throws Exception {
- UUID applicationId = setup.createApplication( "testOrganization", "testDistanceByLimit" );
- assertNotNull( applicationId );
- EntityManager em = setup.getEmf().getEntityManager( applicationId );
+
+ EntityManager em = app.getEntityManager();
assertNotNull( em );
// save objects in a diagonal line from -90 -180 to 90 180
@@ -445,10 +439,7 @@ public class GeoIT extends AbstractCoreIT {
@Test
public void testDenseSearch() throws Exception {
- UUID applicationId = setup.createApplication( "testOrganization", "testDenseSearch" );
- assertNotNull( applicationId );
-
- EntityManager em = setup.getEmf().getEntityManager( applicationId );
+ EntityManager em = app.getEntityManager();
assertNotNull( em );
// save objects in a diagonal line from -90 -180 to 90 180