You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/09/10 18:49:47 UTC

[2/2] git commit: Fix test to look for devices of user not of application.

Fix test to look for devices of user not of application.


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

Branch: refs/heads/two-dot-o
Commit: b0395ed512f656b87f6194a91f4914eebdf78893
Parents: ac1ea3b
Author: Dave Johnson <dm...@apigee.com>
Authored: Wed Sep 10 12:49:29 2014 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Wed Sep 10 12:49:29 2014 -0400

----------------------------------------------------------------------
 .../services/notifications/gcm/NotificationsServiceIT.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/b0395ed5/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
index 6536456..e153d7c 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/gcm/NotificationsServiceIT.java
@@ -195,15 +195,15 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT {
                 user.getUuid(), "devices", device1.getUuid()).getEntity();
         assertEquals(device.getUuid(), device1.getUuid());
 
-        // create query that searches for that device by uuid
+        // create query that searches for that device by providing UUID of the user
         Query pQuery = new Query();
         pQuery.setLimit(100);
         pQuery.setCollection("devices");
         pQuery.setResultsLevel(Query.Level.ALL_PROPERTIES);
+
         pQuery.addIdentifier(new ServiceParameter.NameParameter(
-            device.getUuid().toString()).getIdentifier()); 
-        ns.getQueueManager().TEST_PATH_QUERY =  
-            new PathQuery(new SimpleEntityRef(  app.getEm().getApplicationRef()), pQuery);
+            user.getUuid().toString()).getIdentifier()); 
+        ns.getQueueManager().TEST_PATH_QUERY =  new PathQuery(user), pQuery);
 
         // create a push notification 
         String payload = "Hello, World!";