Repository: incubator-usergrid Updated Branches: refs/heads/USERGRID-347 d263d36d8 -> 267009855
[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-347 Commit: 267009855563a793949826eb76f18f876881f9c2 Parents: d263d36 Author: GERey <[email protected]> Authored: Mon Mar 23 12:06:08 2015 -0700 Committer: GERey <[email protected]> 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());
