activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r661393 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk: src/test/csharp/ConnectionTest.cs vs2005-activemq-test.csproj
Date Thu, 29 May 2008 16:44:22 GMT
Author: jgomes
Date: Thu May 29 09:44:21 2008
New Revision: 661393

URL: http://svn.apache.org/viewvc?rev=661393&view=rev
Log:
Move ConnectionTest.cs to abstract base test class so that all providers can be tested for
this condition.
Fixes [AMQNET-84]. (See https://issues.apache.org/activemq/browse/AMQNET-84)

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/ConnectionTest.cs
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/vs2005-activemq-test.csproj

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/ConnectionTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/ConnectionTest.cs?rev=661393&r1=661392&r2=661393&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/ConnectionTest.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/ConnectionTest.cs Thu
May 29 09:44:21 2008
@@ -1,4 +1,4 @@
-?/*
+/*
  * 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.
@@ -14,34 +14,25 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-using System;
-using Apache.NMS;
 using NUnit.Framework;
 
 namespace Apache.NMS.ActiveMQ.Test
 {
-    [TestFixture]
-    public class ConnectionTest
-    {
-        /// <summary>
-        /// Verify that it is possible to create multiple connections to the broker.
-        /// There was a bug in the connection factory which set the clientId member which
made
-        /// it impossible to create an additional connection.
-        /// </summary>
-        [Test]
-        public void TwoConnections()
-        {
-            Apache.NMS.IConnectionFactory connectionFactory = new Apache.NMS.ActiveMQ.ConnectionFactory(new
Uri("tcp://localhost:61616"));
-            Apache.NMS.IConnection connection1 = connectionFactory.CreateConnection();
-            connection1.Start();
-            Apache.NMS.IConnection connection2 = connectionFactory.CreateConnection();
-            connection2.Start();
+	[TestFixture]
+	public class ConnectionTest_OpenWire : Apache.NMS.Test.ConnectionTest
+	{
+		protected override IConnectionFactory CreateConnectionFactory()
+		{
+			return TestUtils.CreateOpenWireConnectionFactory();
+		}
+	}
 
-            connection1.Stop();
-            connection1.Dispose();
-            connection2.Stop();
-            connection2.Dispose();
-            // with the bug present we'll get an exception in connection2.start()
-        }
-    }
+	[TestFixture]
+	public class ConnectionTest_Stomp : Apache.NMS.Test.ConnectionTest
+	{
+		protected override IConnectionFactory CreateConnectionFactory()
+		{
+			return TestUtils.CreateStompConnectionFactory();
+		}
+	}
 }

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/vs2005-activemq-test.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/vs2005-activemq-test.csproj?rev=661393&r1=661392&r2=661393&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/vs2005-activemq-test.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/vs2005-activemq-test.csproj Thu May
29 09:44:21 2008
@@ -81,8 +81,5 @@
       <Name>vs2005-activemq</Name>
     </ProjectReference>
   </ItemGroup>
-  <ItemGroup>
-    <Folder Include="src\test\csharp\OpenWire\V1\" />
-  </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
-</Project>
+</Project>
\ No newline at end of file



Mime
View raw message