[jboss-cvs] JBoss Messaging SVN: r2171 - trunk/tests/src/org/jboss/test/thirdparty/remoting.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Feb 3 18:44:37 EST 2007
Author: ovidiu.feodorov at jboss.com
Date: 2007-02-03 18:44:37 -0500 (Sat, 03 Feb 2007)
New Revision: 2171
Added:
trunk/tests/src/org/jboss/test/thirdparty/remoting/ServerAddressTest.java
Log:
added a messaging layer test for http://jira.jboss.org/jira/browse/JBREM-696
Added: trunk/tests/src/org/jboss/test/thirdparty/remoting/ServerAddressTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/thirdparty/remoting/ServerAddressTest.java (rev 0)
+++ trunk/tests/src/org/jboss/test/thirdparty/remoting/ServerAddressTest.java 2007-02-03 23:44:37 UTC (rev 2171)
@@ -0,0 +1,67 @@
+/**
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.test.thirdparty.remoting;
+
+import org.jboss.test.messaging.MessagingTestCase;
+import org.jboss.logging.Logger;
+import org.jboss.remoting.transport.socket.ServerAddress;
+
+/**
+ * This test makes sure that Remoting correctly implements ServerAddress.equals();
+ *
+ * @author <a href="mailto:ovidiu at svjboss.org">Ovidiu Feodorov</a>
+ *
+ * @version <tt>$Revision$</tt>
+ *
+ * $Id$
+ */
+public class ServerAddressTest extends MessagingTestCase
+{
+ // Constants ------------------------------------------------------------------------------------
+
+ private static final Logger log = Logger.getLogger(ServerAddressTest.class);
+
+ // Static ---------------------------------------------------------------------------------------
+
+ // Attributes -----------------------------------------------------------------------------------
+
+ // Constructors ---------------------------------------------------------------------------------
+
+ public ServerAddressTest(String name)
+ {
+ super(name);
+ }
+
+ // Public ---------------------------------------------------------------------------------------
+
+ public void testEquals() throws Throwable
+ {
+ ServerAddress sa = new ServerAddress("127.0.0.1", 5678, false, 0);
+ ServerAddress sa2 = new ServerAddress("127.0.0.1", 5678, false, 1);
+
+ assertFalse(sa.equals(sa2));
+ }
+
+ // Package protected ----------------------------------------------------------------------------
+
+ // Protected ------------------------------------------------------------------------------------
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ // Private --------------------------------------------------------------------------------------
+
+ // Inner classes --------------------------------------------------------------------------------
+
+}
Property changes on: trunk/tests/src/org/jboss/test/thirdparty/remoting/ServerAddressTest.java
___________________________________________________________________
Name: svn:keywords
+ Id LastChangedDate Author Revision
More information about the jboss-cvs-commits
mailing list