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/06 11:36:40 UTC

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

Author: ritchiem
Date: Thu Aug  6 09:36:39 2009
New Revision: 801569

URL: http://svn.apache.org/viewvc?rev=801569&view=rev
Log:
QPID-2002 : Updated ChannelLoggingTest to use new getMessageString method for more accurate testing of log messages

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

Modified: qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ChannelLoggingTest.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ChannelLoggingTest.java?rev=801569&r1=801568&r2=801569&view=diff
==============================================================================
--- qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ChannelLoggingTest.java (original)
+++ qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/ChannelLoggingTest.java Thu Aug  6 09:36:39 2009
@@ -128,7 +128,7 @@
         String log = getLog(results.get(resultSize - 1));
 
         validateMessageID("CHN-1002", log);
-        assertTrue("Message should be Flow Stopped", fromMessage(log).endsWith("Flow Stopped"));
+        assertEquals("Message should be Flow Stopped", "Flow Stopped", getMessageString(fromMessage(log)));
 
     }
 
@@ -181,7 +181,7 @@
         String log = getLog(results.get(resultSize - 1));
 
         validateMessageID("CHN-1002", log);
-        assertTrue("Message should be Flow Started", fromMessage(log).endsWith("Flow Started"));
+        assertEquals("Message should be Flow Started", "Flow Started", getMessageString(fromMessage(log)));
 
     }
 
@@ -228,7 +228,7 @@
         String log = getLog(results.get(resultSize - 1));
 
         validateMessageID("CHN-1003", log);
-        assertTrue("Message should be Close:" + fromMessage(log), fromMessage(log).endsWith("Close"));
+        assertEquals("Message should be Close", "Close",getMessageString(fromMessage(log)));
         assertEquals("Incorrect Channel ID closed.", 1, getChannelID(fromActor(log)));
         assertEquals("Incorrect Channel ID closed.", 1, getChannelID(fromSubject(log)));
     }
@@ -273,7 +273,7 @@
         String log = getLog(results.get(resultSize - 1));
 
         validateMessageID("CHN-1003", log);
-        assertTrue("Message should be Close:" + fromMessage(getLog(log)), fromMessage(log).endsWith("Close"));
+        assertEquals("Message should be Close", "Close",getMessageString(fromMessage(log)));
         assertEquals("Incorrect Channel ID closed.", 1, getChannelID(fromActor(log)));
         assertEquals("Incorrect Channel ID closed.", 1, getChannelID(fromSubject(log)));
     }



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