You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2009/08/14 14:49:23 UTC

svn commit: r804199 - /qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java

Author: ritchiem
Date: Fri Aug 14 12:49:22 2009
New Revision: 804199

URL: http://svn.apache.org/viewvc?rev=804199&view=rev
Log:
QPID-2002 : Relax the SubscriptionLoggingTest.testSubscriptionSuspend. It should only check the state not the Actor performing that state change.

Modified:
    qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java

Modified: qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java?rev=804199&r1=804198&r2=804199&view=diff
==============================================================================
--- qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java (original)
+++ qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/SubscriptionLoggingTest.java Fri Aug 14 12:49:22 2009
@@ -359,8 +359,11 @@
 // INFO - MESSAGE [vh(/test)/qu(example.queue)] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED
             // The second will be by the connnection as it acknowledges and activates the subscription
 // INFO - MESSAGE [con:6(guest@anonymous(26562441)/test)/ch:3] [sub:6(qu(example.queue))] SUB-1003 : State : ACTIVE
-            // The final one will be the subscription suspending as part of the SubFlushRunner
+            // The final one can be the subscription suspending as part of the SubFlushRunner or the processQueue thread
+            // As a result validating the actor is more complicated and doesn't add anything. The goal of this test is
+            // to ensure the State is correct not that a particular Actor performs the logging.
 // INFO - MESSAGE [sub:6(vh(test)/qu(example.queue))] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED
+// INFO - MESSAGE [vh(/test)/qu(example.queue)] [sub:6(qu(example.queue))] SUB-1003 : State : SUSPENDED
 
             assertEquals("Result set larger than expected.", 3, results.size());
 
@@ -387,10 +390,7 @@
             expectedState = "SUSPENDED";
             log = getLog(results.get(2));
             validateSubscriptionState(log, expectedState);
-            // Validate we have a subscription Actor
-            actor = fromActor(log);
-            assertTrue("The actor is not a subscription actor:" + actor, actor.startsWith("sub:"));
-
+            // We only need validate the state.
         }
         catch (AssertionFailedError afe)
         {



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org