activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r780125 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Date Fri, 29 May 2009 22:15:47 GMT
Author: jgomes
Date: Fri May 29 22:15:47 2009
New Revision: 780125

URL: http://svn.apache.org/viewvc?rev=780125&view=rev
Log:
Added unit tests for parameter validation.

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

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs?rev=780125&r1=780124&r2=780125&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/NMSConnectionFactoryTest.cs
Fri May 29 22:15:47 2009
@@ -27,10 +27,19 @@
 		[RowTest]
 		[Row("tcp://activemqhost:61616")]
 		[Row("activemq:tcp://activemqhost:61616")]
+		[Row("activemq:tcp://activemqhost:61616?connection.asyncclose=false")]
+		[Row("activemq:(tcp://activemqhost:61616)?connection.asyncclose=false")]
 		[Row("activemq:multicast://activemqhost:6155")]
 		[Row("activemq:failover://activemqhost:61616")]
 		[Row("activemq:failover://(tcp://activemqhost:61616,tcp://activemqhost:61616)")]
 
+		[Row("tcp://activemqhost:61616?connection.InvalidParameter=true", ExpectedException = typeof(NMSException))]
+		[Row("activemq:tcp://activemqhost:61616?connection.InvalidParameter=true", ExpectedException
= typeof(NMSException))]
+		[Row("activemq:(tcp://activemqhost:61616)?connection.InvalidParameter=true", ExpectedException
= typeof(NMSException))]
+		[Row("activemq:(tcp://activemqhost:61616?connection.InvalidParameter=true)", ExpectedException
= typeof(NMSException))]
+		[Row("activemq:(tcp://activemqhost:61616,tcp://activemqbackup:61616)?connection.InvalidParameter=true",
ExpectedException = typeof(NMSException))]
+		[Row("activemq:(tcp://activemqhost:61616,tcp://activemqbackup:61616?connection.InvalidParameter=true)",
ExpectedException = typeof(NMSException))]
+
 		[Row("ftp://activemqhost:61616", ExpectedException = typeof(NMSConnectionException))]
 		[Row("http://activemqhost:61616", ExpectedException = typeof(NMSConnectionException))]
 		[Row("discovery://activemqhost:6155", ExpectedException = typeof(NMSConnectionException))]



Mime
View raw message