[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Failure on RemotingConnectionConfigurationTest::testConnecti

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Mar 21 15:18:36 EDT 2007


After updating Remoting, this test is failling...

The test is calling callbackConnectors.get(callbackHandler) and this HashMap operation is retuning a HashSet while it used to return a Connector.


  |            Connector connector = Connector)callbackConnectors.get(callbackHandler);
  | 


I don't know if the API changed... if this test is now invalid... or what?

I would need to get some input on this... as i didn't authored the test I don't know what's this is supposed to return.

Ron, Tom Elrod?



This is a more complete snippet of the failing test:

         if ("socket".equals(transport)
  |                || "sslsocket".equals(transport)
  |                || "bisocket".equals(transport)
  |                || "sslbisocket".equals(transport))
  |          {
  |             field = Client.class.getDeclaredField("callbackConnectors");
  |             field.setAccessible(true);
  |             Map callbackConnectors = (Map)field.get(client);
  | 
  |             InvokerCallbackHandler callbackHandler = remotingConnection.getCallbackManager();
  |             Connector connector = (Connector)callbackConnectors.get(callbackHandler);
  |             locator = new InvokerLocator(connector.getInvokerLocator());
  |             assertEquals(address, locator.getHost());
  |             assertEquals(freePort, locator.getPort());
  |          }
  | 




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030354#4030354

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030354



More information about the jboss-dev-forums mailing list