You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/03/24 23:41:15 UTC
[11/18] incubator-usergrid git commit: [USERGRID-338] Fixed logic
error in test.
[USERGRID-338] Fixed logic error in test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/26700985
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/26700985
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/26700985
Branch: refs/heads/USERGRID-501
Commit: 267009855563a793949826eb76f18f876881f9c2
Parents: d263d36
Author: GERey <gr...@apigee.com>
Authored: Mon Mar 23 12:06:08 2015 -0700
Committer: GERey <gr...@apigee.com>
Committed: Mon Mar 23 12:06:08 2015 -0700
----------------------------------------------------------------------
.../rest/applications/collection/users/OwnershipResourceIT.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/26700985/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/users/OwnershipResourceIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/users/OwnershipResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/users/OwnershipResourceIT.java
index f898cd6..87f2ab7 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/users/OwnershipResourceIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/users/OwnershipResourceIT.java
@@ -238,7 +238,7 @@ public class OwnershipResourceIT extends AbstractRestIT {
refreshIndex();
//Create a restaurant and link it to user1/me
- data = usersResource.entity("me")
+ Entity fourPeaksData = usersResource.entity("me")
.connection("likes").collection( "restaurants" ).entity( "4peaks" ).post();
refreshIndex();
@@ -268,7 +268,7 @@ public class OwnershipResourceIT extends AbstractRestIT {
.collection( "restaurants" );
//Check that we can get the 4peaks restaurant by using its uuid
- String peaksId = data.getUuid().toString();
+ String peaksId = fourPeaksData.getUuid().toString();
data = likeRestaurants.entity(peaksId).get();
assertNotNull( data );
assertEquals("4peaks", data.get("name").toString());