You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/01/08 23:39:42 UTC
svn commit: r897342 -
/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/BytesMessageTest.cs
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))
{