activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r898138 - /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Date Tue, 12 Jan 2010 00:42:36 GMT
Author: tabish
Date: Tue Jan 12 00:42:35 2010
New Revision: 898138

URL: http://svn.apache.org/viewvc?rev=898138&view=rev
Log:
port code to build on .NET CF 2.0 and above

Modified:
    activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs?rev=898138&r1=898137&r2=898138&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Tue Jan 12 00:42:35 2010
@@ -30,24 +30,20 @@
 #if !NETCF
         [Row("stomp:tcp://${activemqhost}:61613")]
         [Row("stomp:tcp://${activemqhost}:61613?connection.asyncsend=false")]
+        [Row("stomp:tcp://${activemqhost}:61613?connection.InvalidParameter=true", ExpectedException
= typeof(NMSConnectionException))]
+        [Row("stomp:tcp://${activemqhost}:61613?connection.InvalidParameter=true", ExpectedException
= typeof(NMSConnectionException))]
+        [Row("stomp:(tcp://${activemqhost}:61613)?connection.asyncSend=false", ExpectedException
= typeof(NMSConnectionException))]
 #endif
         [Row("stomp:tcp://InvalidHost:61613", ExpectedException = typeof(NMSConnectionException))]
         [Row("stomp:tcp://InvalidHost:61613", ExpectedException = typeof(NMSConnectionException))]
         [Row("stomp:tcp://InvalidHost:61613?connection.asyncsend=false", ExpectedException
= typeof(NMSConnectionException))]
-#if !NETCF
-        [Row("stomp:tcp://${activemqhost}:61613?connection.InvalidParameter=true", ExpectedException
= typeof(NMSConnectionException))]
-        [Row("stomp:tcp://${activemqhost}:61613?connection.InvalidParameter=true", ExpectedException
= typeof(NMSConnectionException))]
-#endif
         [Row("ftp://${activemqhost}:61613", ExpectedException = typeof(NMSConnectionException))]
         [Row("http://${activemqhost}:61613", ExpectedException = typeof(NMSConnectionException))]
         [Row("discovery://${activemqhost}:6155", ExpectedException = typeof(NMSConnectionException))]
         [Row("sms://${activemqhost}:61613", ExpectedException = typeof(NMSConnectionException))]
         [Row("stomp:multicast://${activemqhost}:6155", ExpectedException = typeof(NMSConnectionException))]
-#if !NETCF
-        [Row("stomp:(tcp://${activemqhost}:61613)?connection.asyncSend=false", ExpectedException
= typeof(NMSConnectionException))]
         [Row("(tcp://${activemqhost}:61613,tcp://${activemqhost}:61613)", ExpectedException
= typeof(UriFormatException))]
         [Row("tcp://${activemqhost}:61613,tcp://${activemqhost}:61613", ExpectedException
= typeof(UriFormatException))]
-#endif
         public void TestURI(string connectionURI)
         {
             NMSConnectionFactory factory = new NMSConnectionFactory(NMSTestSupport.ReplaceEnvVar(connectionURI));
@@ -59,7 +55,9 @@
             }
         }
 
+#if !NETCF
         [Test]
+#endif
         public void TestURIForPrefetchHandling()
         {
             string uri1 = "stomp:tcp://${activemqhost}:61613" +



Mime
View raw message