[jboss-remoting-commits] JBoss Remoting SVN: r4078 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/interrupt.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Fri Apr 25 03:41:28 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-04-25 03:41:28 -0400 (Fri, 25 Apr 2008)
New Revision: 4078

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/interrupt/InterruptedExceptionTestCase.java
Log:
JBREM-955: Added assertion to verify thrown exception is not a CannotConnectException.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/interrupt/InterruptedExceptionTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/interrupt/InterruptedExceptionTestCase.java	2008-04-25 07:22:05 UTC (rev 4077)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/interrupt/InterruptedExceptionTestCase.java	2008-04-25 07:41:28 UTC (rev 4078)
@@ -34,6 +34,7 @@
 import org.apache.log4j.Logger;
 import org.apache.log4j.PatternLayout;
 import org.jboss.logging.XLevel;
+import org.jboss.remoting.CannotConnectException;
 import org.jboss.remoting.Client;
 import org.jboss.remoting.InvocationRequest;
 import org.jboss.remoting.InvokerLocator;
@@ -142,6 +143,7 @@
       Throwable t = t2.throwable;
       log.info("throwable: " + t);
       assertTrue(t instanceof RuntimeException);
+      assertFalse(t instanceof CannotConnectException);
       assertTrue(t.getCause() instanceof InterruptedException);
       
       client.disconnect();




More information about the jboss-remoting-commits mailing list