You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2008/08/05 02:07:13 UTC

svn commit: r682546 - in /activemq/activemq-dotnet/Apache.NMS.EMS/trunk: nmsprovider-test.config src/test/csharp/InheritedTests.cs src/test/csharp/NMSConnectionFactoryTest.cs vs2008-ems-test.csproj

Author: jgomes
Date: Mon Aug  4 17:07:13 2008
New Revision: 682546

URL: http://svn.apache.org/viewvc?rev=682546&view=rev
Log:
Refactored unit tests to load external configuration that can be customized for a run-time environment without having to modify and recompile the unit test code.
Fixes [AMQNET-92]. (See https://issues.apache.org/activemq/browse/AMQNET-92)

Added:
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nmsprovider-test.config
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/InheritedTests.cs
Removed:
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Modified:
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2008-ems-test.csproj

Added: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nmsprovider-test.config
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nmsprovider-test.config?rev=682546&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nmsprovider-test.config (added)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nmsprovider-test.config Mon Aug  4 17:07:13 2008
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+* 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.
+-->
+<configuration>
+	<defaultURI value="ems:tcp://jgomesv1:7222">
+		<factoryParams>
+			<param type="string" value="NMSTestClient"/>
+		</factoryParams>
+		<userName value="guest"/>
+		<passWord value="guest"/>
+	</defaultURI>
+</configuration>

Added: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/InheritedTests.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/InheritedTests.cs?rev=682546&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/InheritedTests.cs (added)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/src/test/csharp/InheritedTests.cs Mon Aug  4 17:07:13 2008
@@ -0,0 +1,75 @@
+/*
+ * 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 NUnit.Framework;
+
+namespace Apache.NMS.EMS.Test
+{
+	[TestFixture]
+	public class AsyncConsumeTest : Apache.NMS.Test.AsyncConsumeTest
+	{
+	}
+
+	[TestFixture]
+	public class BadConsumeTest : Apache.NMS.Test.BadConsumeTest
+	{
+	}
+
+	[TestFixture]
+	public class BytesMessageTest : Apache.NMS.Test.BytesMessageTest
+	{
+	}
+
+	[TestFixture]
+	public class ConnectionTest : Apache.NMS.Test.ConnectionTest
+	{
+	}
+
+	[TestFixture]
+	public class ConsumerTest : Apache.NMS.Test.ConsumerTest
+	{
+	}
+
+	[TestFixture]
+	public class DurableTest : Apache.NMS.Test.DurableTest
+	{
+	}
+
+	[TestFixture]
+	public class MapMessageTest : Apache.NMS.Test.MapMessageTest
+	{
+	}
+
+	[TestFixture]
+	public class NMSPropertyTest : Apache.NMS.Test.NMSPropertyTest
+	{
+	}
+
+	[TestFixture]
+	public class TemporaryQueueTest : Apache.NMS.Test.TemporaryQueueTest
+	{
+	}
+
+	[TestFixture]
+	public class TextMessage : Apache.NMS.Test.TextMessage
+	{
+	}
+
+	[TestFixture]
+	public class TransactionTest : Apache.NMS.Test.TransactionTest
+	{
+	}
+}

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2008-ems-test.csproj
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2008-ems-test.csproj?rev=682546&r1=682545&r2=682546&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2008-ems-test.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/vs2008-ems-test.csproj Mon Aug  4 17:07:13 2008
@@ -51,16 +51,13 @@
     <DebugType>full</DebugType>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>$(USERPROFILE)\.nant\repository\org.nunit\nunit\2.2.8\all\nunit.framework.dll</HintPath>
-    </Reference>
+    <Reference Include="nunit.framework, Version=2.4.7.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" />
     <Reference Include="System" />
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
     <Compile Include="src\test\csharp\CommonAssemblyInfo.cs" />
-    <Compile Include="src\test\csharp\NMSConnectionFactoryTest.cs" />
+    <Compile Include="src\test\csharp\InheritedTests.cs" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="vendor\Apache.NMS\vs2008-nms-test.csproj">
@@ -95,6 +92,7 @@
   </ItemGroup>
   <ItemGroup>
     <None Include="activemq-dotnet.snk" />
+    <None Include="nmsprovider-test.config" />
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
 </Project>
\ No newline at end of file