From 79af556e23ff02c660abee6ff9f1f0aa278b1d87 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 3 Mar 2008 14:54:59 +0000 Subject: QPID-594 QPID-107 Updated Connection missing AMQAuthenticationException problems git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@633111 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/client') diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java index 4d47d080b7..53d25c2cad 100644 --- a/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java +++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java @@ -126,7 +126,7 @@ public class ConnectionTest extends TestCase } catch (AMQException amqe) { - if (amqe.getCause() instanceof Exception) + if (amqe.getCause().getClass() == Exception.class) { System.err.println("QPID-594 : WARNING RACE CONDITION. Unable to determine cause of Connection Failure."); return; -- cgit v1.2.1