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 2009/04/22 22:14:00 UTC

svn commit: r767647 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs

Author: tabish
Date: Wed Apr 22 20:13:59 2009
New Revision: 767647

URL: http://svn.apache.org/viewvc?rev=767647&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-128

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs?rev=767647&r1=767646&r2=767647&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs Wed Apr 22 20:13:59 2009
@@ -59,6 +59,20 @@
             AssertPrimitiveMap(map);
         }
 
+        [Test]
+        public void TestMarshalledWithBigString()
+        {
+            PrimitiveMap map = CreatePrimitiveMap();
+            String test = new String( 'a', 65538 );
+            map.SetString( "BIG_STRING", test );
+            Console.WriteLine("data: " + map);
+            byte[] data = map.Marshal();
+            map = PrimitiveMap.Unmarshal(data);
+            Console.WriteLine("data: " + map);
+            AssertPrimitiveMap(map);
+            Assert.AreEqual( test, map.GetString( "BIG_STRING" ) );
+        }
+
         protected PrimitiveMap CreatePrimitiveMap()
         {
             PrimitiveMap map = new PrimitiveMap();