usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [18/19] git commit: changing setup methods
Date Wed, 01 Oct 2014 20:01:17 GMT
changing setup methods


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

Branch: refs/heads/two-dot-o-rebuildable-index
Commit: 34a2a6ad1b620b6927a2e6f427c4fe1964a77177
Parents: 8815abd
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Wed Oct 1 10:51:20 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Wed Oct 1 10:51:20 2014 -0600

----------------------------------------------------------------------
 .../notifications/apns/NotificationsServiceIT.java       | 11 ++++++-----
 .../notifications/gcm/NotificationsServiceIT.java        |  5 ++++-
 2 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/34a2a6ad/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
index 8d994e9..479ca86 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
@@ -24,7 +24,7 @@ import org.apache.usergrid.persistence.*;
 import org.apache.usergrid.persistence.entities.*;
 import org.apache.usergrid.persistence.index.query.Query;
 import org.apache.usergrid.services.notifications.*;
-import org.junit.After;
+import org.junit.*;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -38,9 +38,6 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.fail;
-import org.junit.Before;
-import org.junit.Ignore;
-import org.junit.Test;
 
 import static org.apache.usergrid.services.notifications.NotificationsService.NOTIFIER_ID_POSTFIX;
 
@@ -66,10 +63,14 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
     private NotificationsService ns;
     QueueListener listener;
 
+    @BeforeClass
+    public static void setup(){
+        ApplicationQueueManager.DEFAULT_QUEUE_NAME = "notifications/test/" + UUID.randomUUID().toString()+";"+"notifications/test/"
+ UUID.randomUUID().toString();
+    }
+
     @Override
     @Before
     public void before() throws Exception {
-        ApplicationQueueManager.DEFAULT_QUEUE_NAME = "notifications/test/" + UUID.randomUUID().toString()+";"+"notifications/test/"
+ UUID.randomUUID().toString();
 
         super.before();
         // create apns notifier //

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/34a2a6ad/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 fd1c36c..8907226 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
@@ -59,10 +59,13 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
     private NotificationsService ns;
     private QueueListener listener;
 
+    @BeforeClass
+    public static void setup(){
+        ApplicationQueueManager.DEFAULT_QUEUE_NAME = "notifications/test/" + UUID.randomUUID().toString()+";"+"notifications/test/"
+ UUID.randomUUID().toString();
+    }
     @Override
     @Before
     public void before() throws Exception {
-        ApplicationQueueManager.DEFAULT_QUEUE_NAME = "notifications/test/" + UUID.randomUUID().toString()+";"+"notifications/test/"
+ UUID.randomUUID().toString();
 
         super.before();
 


Mime
View raw message