You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2007/03/02 16:52:03 UTC

svn commit: r513817 - in /activemq/activemq-dotnet/trunk/src: main/csharp/ActiveMQ/ test/csharp/Stomp/

Author: jstrachan
Date: Fri Mar  2 07:52:02 2007
New Revision: 513817

URL: http://svn.apache.org/viewvc?view=rev&rev=513817
Log:
added a bunch more tests for NMS over Stomp

Added:
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/BadConsumeTest.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/ConsumerTest.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/DurableTest.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/MapMessageTest.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TemporaryQueueTest.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TextMessage.cs
    activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TransactionTest.cs
Modified:
    activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/CommonAssemblyInfo.cs

Modified: activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/CommonAssemblyInfo.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/CommonAssemblyInfo.cs?view=diff&rev=513817&r1=513816&r2=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/CommonAssemblyInfo.cs (original)
+++ activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/CommonAssemblyInfo.cs Fri Mar  2 07:52:02 2007
@@ -1,16 +1,16 @@
-using System;
+using System;
 using System.Reflection;
 using System.Runtime.InteropServices;
 
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     This code was generated by a tool.
-//     Runtime Version:2.0.50727.42
-//
-//     Changes to this file may cause incorrect behavior and will be lost if
-//     the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
+// ------------------------------------------------------------------------------
+//  <autogenerated>
+//      This code was generated by a tool.
+//      Mono Runtime Version: 2.0.50727.42
+// 
+//      Changes to this file may cause incorrect behavior and will be lost if 
+//      the code is regenerated.
+//  </autogenerated>
+// ------------------------------------------------------------------------------
 
 [assembly: ComVisibleAttribute(false)]
 [assembly: CLSCompliantAttribute(true)]

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/BadConsumeTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/BadConsumeTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/BadConsumeTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/BadConsumeTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,34 @@
+/*
+ * 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 NMS;
+using NUnit.Framework;
+using Stomp;
+using System;
+
+namespace Stomp
+{
+	[TestFixture]
+    public class BadConsumeTest : NMS.Test.BadConsumeTest
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+    }
+}
+
+

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/ConsumerTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/ConsumerTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/ConsumerTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/ConsumerTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,35 @@
+/*
+ * 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 NMS;
+using NUnit.Framework;
+using Stomp;
+using System;
+
+namespace Stomp
+{
+    [TestFixture]
+    public class ConsumerTest : NMS.Test.ConsumerTest
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+    }
+}
+
+
+

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/DurableTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/DurableTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/DurableTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/DurableTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,31 @@
+/*
+ * 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 System;
+using NMS;
+using NUnit.Framework;
+
+namespace Stomp
+{
+    [TestFixture]
+    public class DurableTest : NMS.Test.DurableTest
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+    }
+}

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/MapMessageTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/MapMessageTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/MapMessageTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/MapMessageTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,46 @@
+/*
+ * 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 Stomp;
+using NMS;
+using NUnit.Framework;
+using System;
+
+namespace Stomp
+{
+	[ TestFixture ]
+    public class MapMessageTest : NMS.Test.MapMessageTest
+    {
+		public override void SendAndSyncReceive()
+        {
+            // TODO disable test
+        }
+		
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+		
+        protected override void AssertValidMessage(IMessage message)
+        {
+            Console.WriteLine("Received MapMessage: " + message);
+			
+            Assert.IsTrue(message is IMapMessage, "Did not receive a MapMessage!");
+		}
+    }
+}
+
+

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TemporaryQueueTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TemporaryQueueTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TemporaryQueueTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TemporaryQueueTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,32 @@
+/*
+ * 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 NMS;
+using NUnit.Framework;
+using Stomp;
+using System;
+
+namespace Stomp
+{
+    [ TestFixture ]
+    public class TemporaryQueueTest : NMS.Test.TemporaryQueueTest
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+    }
+}

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TextMessage.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TextMessage.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TextMessage.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TextMessage.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,35 @@
+/*
+ * 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 NMS;
+using NUnit.Framework;
+using Stomp;
+using System;
+
+namespace Stomp
+{
+	[ TestFixture ]
+    public class TextMessage : NMS.Test.TextMessage
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+    }
+}
+
+
+

Added: activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TransactionTest.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TransactionTest.cs?view=auto&rev=513817
==============================================================================
--- activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TransactionTest.cs (added)
+++ activemq/activemq-dotnet/trunk/src/test/csharp/Stomp/TransactionTest.cs Fri Mar  2 07:52:02 2007
@@ -0,0 +1,36 @@
+/*
+ * 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 NMS;
+using NUnit.Framework;
+using Stomp;
+using System;
+
+
+namespace Stomp
+{
+	[TestFixture]
+    public class TransactionTest : NMS.Test.TransactionTest
+    {
+        protected override IConnectionFactory CreateConnectionFactory()
+        {
+            return new ConnectionFactory();
+        }
+		
+    }
+}
+
+