activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r767647 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/OpenWire/PrimitiveMapTest.cs
Date Wed, 22 Apr 2009 20:14:00 GMT
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();



Mime
View raw message