activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1066715 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk: src/test/csharp/SpecialCharactersTest.cs vs2008-stomp-test.csproj
Date Thu, 03 Feb 2011 01:10:44 GMT
Author: tabish
Date: Thu Feb  3 01:10:44 2011
New Revision: 1066715

URL: http://svn.apache.org/viewvc?rev=1066715&view=rev
Log:
add test for: https://issues.apache.org/jira/browse/AMQNET-315

Added:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs
  (with props)
Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj

Added: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs?rev=1066715&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs
(added)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs
Thu Feb  3 01:10:44 2011
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Threading;
+using Apache.NMS.Policies;
+using Apache.NMS.Test;
+using NUnit.Framework;
+
+namespace Apache.NMS.Stomp.Test
+{
+    [TestFixture]
+    public class SpecialCharactersTest : NMSTestSupport
+    {
+        private Connection connection;
+        private int counter;
+        private ISession session;
+
+        [SetUp]
+        public override void SetUp()
+        {
+            this.connection = (Connection) CreateConnection();
+
+            this.counter = 0;
+        }
+
+        [TearDown]
+        public override void TearDown()
+        {
+            this.session = null;
+
+            if(this.connection != null)
+            {
+                this.connection.Close();
+                this.connection = null;
+            }
+
+            base.TearDown();
+        }
+        
+        [Test]
+        public void TestSpecialCharacters()
+        {
+            string message = "Special characters: â è ô ü ö ó ñ";
+            connection.Start();
+
+            this.session = connection.CreateSession(AcknowledgementMode.AutoAcknowledge);
+            ITemporaryQueue queue = session.CreateTemporaryQueue();
+            IMessageProducer producer = session.CreateProducer(queue);
+            IMessageConsumer consumer = session.CreateConsumer(queue);
+
+            //
+            // send the message
+            IMessage textMessage = session.CreateTextMessage(message);
+            producer.Send(textMessage);
+
+            //
+            // wait for the response
+            ITextMessage messageReceive = (ITextMessage) consumer.Receive(TimeSpan.FromMilliseconds(10000));
+            Assert.AreEqual(message, messageReceive.Text);
+
+            session.Close();
+        }
+    }
+}

Propchange: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/SpecialCharactersTest.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj?rev=1066715&r1=1066714&r2=1066715&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj Thu Feb  3 01:10:44
2011
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5">
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -57,11 +57,11 @@
   <ItemGroup>
     <Reference Include="System" />
     <Reference Include="System.Xml" />
-    <Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
+    <Reference Include="nunit.framework, Version=2.5.8.10295, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>lib\NUnit\mono-2.0\nunit.framework.dll</HintPath>
     </Reference>
-    <Reference Include="Apache.NMS.Test, Version=1.4.0.2071, Culture=neutral, PublicKeyToken=82756feee3957618">
+    <Reference Include="Apache.NMS.Test, Version=1.6.0.2216, Culture=neutral, PublicKeyToken=82756feee3957618">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>lib\Apache.NMS\mono-2.0\Apache.NMS.Test.dll</HintPath>
     </Reference>
@@ -117,5 +117,6 @@
     <Compile Include="src\test\csharp\Protocol\XmlPrimitiveMapMarshalerTest.cs" />
     <Compile Include="src\test\csharp\Commands\ConsumerIdTest.cs" />
     <Compile Include="src\test\csharp\Commands\ProducerIdTest.cs" />
+    <Compile Include="src\test\csharp\SpecialCharactersTest.cs" />
   </ItemGroup>
 </Project>
\ No newline at end of file



Mime
View raw message