summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2008-03-03 14:54:59 +0000
committerMartin Ritchie <ritchiem@apache.org>2008-03-03 14:54:59 +0000
commit79af556e23ff02c660abee6ff9f1f0aa278b1d87 (patch)
treeb5959359be90d6a483ab0f57e15100777b23a732 /java
parentd2c391747f443d9abf1cbcfb436506de707c91bb (diff)
downloadqpid-python-79af556e23ff02c660abee6ff9f1f0aa278b1d87.tar.gz
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
Diffstat (limited to 'java')
-rw-r--r--java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java2
-rw-r--r--java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java2
2 files changed, 2 insertions, 2 deletions
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;
diff --git a/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java b/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
index 0b0a297726..8ed3605723 100644
--- a/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
+++ b/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
@@ -106,7 +106,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener
}
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;