activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r897342 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs
Date Fri, 08 Jan 2010 22:39:42 GMT
Author: tabish
Date: Fri Jan  8 22:39:42 2010
New Revision: 897342

URL: http://svn.apache.org/viewvc?rev=897342&view=rev
Log:
Switch the test case from a Queue to use a TemporaryTopic in order to leave less clutter on
the broker.

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs?rev=897342&r1=897341&r2=897342&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs Fri
Jan  8 22:39:42 2010
@@ -26,7 +26,6 @@
     [TestFixture]
     public class BytesMessageTest : NMSTestSupport
     {
-        protected static string DESTINATION_NAME = "BytesMessageDestination";
         protected static string TEST_CLIENT_ID = "BytesMessageClientId";
         protected byte[] msgContent = {1, 2, 3, 4, 5, 6, 7, 8};
 
@@ -50,7 +49,7 @@
                 connection.Start();
                 using(ISession session = connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
                 {
-                    IDestination destination = SessionUtil.GetDestination(session, DESTINATION_NAME);
+                    IDestination destination = session.CreateTemporaryTopic();
                     using(IMessageConsumer consumer = session.CreateConsumer(destination))
                     using(IMessageProducer producer = session.CreateProducer(destination))
                     {
@@ -79,7 +78,7 @@
                 connection.Start();
                 using(ISession session = connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
                 {
-                    IDestination destination = SessionUtil.GetDestination(session, DESTINATION_NAME);
+                    IDestination destination = session.CreateTemporaryTopic();
                     using(IMessageConsumer consumer = session.CreateConsumer(destination))
                     using(IMessageProducer producer = session.CreateProducer(destination))
                     {



Mime
View raw message