Author: jgomes
Date: Mon Aug 16 22:21:46 2010
New Revision: 986144
URL: http://svn.apache.org/viewvc?rev=986144&view=rev
Log:
Fix test to reset read-only flag for sent messages.
Fixes [AMQNET-272]. (See https://issues.apache.org/activemq/browse/AMQNET-272)
Modified:
activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/TempDestinationTest.cs
Modified:
activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/TempDestinationTest.cs
URL:
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/TempDestinationTest.cs?rev=986144&r1=986143&r2=986144&view=diff
==============================================================================
---
activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/TempDestinationTest.cs
(original)
+++
activemq/activemq-dotnet/Apache.NMS/trunk/src/test/csharp/TempDestinationTest.cs
Mon Aug 16 22:21:46 2010
@@ -161,6 +161,7 @@ namespace Apache.NMS.Test
Assert.AreEqual(i, message2.Properties.GetInt("c"));
message = list[i] as IBytesMessage;
Assert.IsNotNull(message);
+ message.Reset();
message.ReadBytes(data);
message2.ReadBytes(data2);
Assert.AreEqual(data, data2);