Author: ron.sigal(a)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();
Show replies by date