usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [1/2] usergrid git commit: Fix invalid priority notification test assertion.
Date Thu, 07 Jan 2016 22:34:59 GMT
Repository: usergrid
Updated Branches:
  refs/heads/master 29ef96626 -> 6dfbb23c9


Fix invalid priority notification test assertion.


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

Branch: refs/heads/master
Commit: de15ad03c4da76d943ec9350adfa38e57cb2dcfa
Parents: 733ada6
Author: Michael Russo <michaelarusso@gmail.com>
Authored: Thu Jan 7 14:34:13 2016 -0800
Committer: Michael Russo <michaelarusso@gmail.com>
Committed: Thu Jan 7 14:34:13 2016 -0800

----------------------------------------------------------------------
 .../services/notifications/gcm/NotificationsServiceIT.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/de15ad03/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 08facf3..0741b5e 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
@@ -216,7 +216,8 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
 
         // perform push //
         notification = notificationWaitForComplete(notification);
-        assertEquals("high", notification.getPriority());
+        // if priority is invalid, it should default to normal
+        assertEquals("normal", notification.getPriority());
         checkReceipts(notification, 1);
     }
 


Mime
View raw message