Package org.jboss.test.thirdparty.remoting

Source Code of org.jboss.test.thirdparty.remoting.ServerAddressTest

/**
* 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.remoting.transport.socket.ServerAddress;

/**
* This test makes sure that Remoting implements ServerAddress.equals() correctly.
*
* @author <a href="mailto:ovidiu@svjboss.org">Ovidiu Feodorov</a>
*
* @version <tt>$Revision: 2174 $</tt>
*
* $Id: ServerAddressTest.java 2174 2007-02-04 00:26:00Z ovidiu.feodorov@jboss.com $
*/
public class ServerAddressTest extends MessagingTestCase
{
   // Constants ------------------------------------------------------------------------------------

   // 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 --------------------------------------------------------------------------------

}
TOP

Related Classes of org.jboss.test.thirdparty.remoting.ServerAddressTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.