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/12/09 20:08:52 UTC
svn commit: r888927 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk:
Apache.NMS.Stomp.Test.nunit nmsprovider-test.config
src/main/csharp/Protocol/StompHelper.cs vs2008-stomp-test.csproj
Author: tabish
Date: Wed Dec 9 19:08:51 2009
New Revision: 888927
URL: http://svn.apache.org/viewvc?rev=888927&view=rev
Log:
Update testing code to add first unit test and proper configuration of the NUnit tests.
Modified:
activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/Apache.NMS.Stomp.Test.nunit
activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/nmsprovider-test.config
activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompHelper.cs
activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/vs2008-stomp-test.csproj
Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/Apache.NMS.Stomp.Test.nunit
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/Apache.NMS.Stomp.Test.nunit?rev=888927&r1=888926&r2=888927&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/Apache.NMS.Stomp.Test.nunit (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/Apache.NMS.Stomp.Test.nunit Wed Dec 9 19:08:51 2009
@@ -2,6 +2,5 @@
<Settings activeconfig="Default" />
<Config name="Default" binpathtype="Auto">
<assembly path="Apache.NMS.Stomp.Test.dll" />
- <assembly path="Apache.NMS.Test.dll" />
</Config>
-</NUnitProject>
\ No newline at end of file
+</NUnitProject>
Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/nmsprovider-test.config
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/nmsprovider-test.config?rev=888927&r1=888926&r2=888927&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/nmsprovider-test.config (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/nmsprovider-test.config Wed Dec 9 19:08:51 2009
@@ -16,11 +16,11 @@
* limitations under the License.
-->
<configuration>
- <defaultURI value="stomp:tcp://${activemqhost}:61616?connection.AsyncClose=false"/>
+ <defaultURI value="stomp:tcp://${activemqhost}:61613"/>
<maxInactivityDurationURI value="stomp:tcp://${activemqhost}:61613"/>
- <openWireURI value="stomp:tcp://${activemqhost}:61616?connection.AsyncClose=false">
+ <openWireURI value="stomp:tcp://${activemqhost}:61613">
<factoryParams>
<param type="string" value="StompTestClient"/>
</factoryParams>
Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompHelper.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompHelper.cs?rev=888927&r1=888926&r2=888927&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompHelper.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Protocol/StompHelper.cs Wed Dec 9 19:08:51 2009
@@ -125,17 +125,13 @@
public static string ToStomp(AcknowledgementMode ackMode)
{
- if(ackMode == AcknowledgementMode.ClientAcknowledge)
- {
- return "client";
- }
- else if(ackMode == AcknowledgementMode.IndividualAcknowledge)
+ if(ackMode == AcknowledgementMode.IndividualAcknowledge)
{
return "client-individual";
}
else
{
- return "auto";
+ return "client";
}
}
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=888927&r1=888926&r2=888927&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 Wed Dec 9 19:08:51 2009
@@ -8,6 +8,7 @@
<ProjectGuid>{E8C995C3-FF81-491B-A3B7-9D7C753BDDC3}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>vs2008-stomp-test</AssemblyName>
+ <RootNamespace>Apache.NMS.Stomp.Test</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -65,8 +66,12 @@
<Properties>
<Policies>
<TextStylePolicy FileWidth="120" TabWidth="4" TabsToSpaces="True" NoTabsAfterNonTabs="False" RemoveTrailingWhitespace="True" EolMarker="Native" />
+ <StandardHeader Text="/*
 * 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.
 */
" inheritsSet="MITX11License" />
</Policies>
</Properties>
</MonoDevelop>
</ProjectExtensions>
+ <ItemGroup>
+ <Compile Include="src\test\csharp\StompHelperTest.cs" />
+ </ItemGroup>
</Project>
\ No newline at end of file