diff options
author | Martin Ritchie <ritchiem@apache.org> | 2008-03-03 14:02:27 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2008-03-03 14:02:27 +0000 |
commit | e954a2147afe343f0cbd9c5522232eda88541594 (patch) | |
tree | 25c556d6a32d909dbf20f6200846849008df76c8 | |
parent | a91e0a19c3ca405b659d21593f433fca692acbec (diff) | |
download | qpid-python-e954a2147afe343f0cbd9c5522232eda88541594.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@633088 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 6 | ||||
-rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java | 1 |
2 files changed, 7 insertions, 0 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 c97e2c4cb1..4d47d080b7 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,6 +126,12 @@ public class ConnectionTest extends TestCase } catch (AMQException amqe) { + if (amqe.getCause() instanceof Exception) + { + System.err.println("QPID-594 : WARNING RACE CONDITION. Unable to determine cause of Connection Failure."); + return; + } + assertEquals("Exception was wrong type", JMSException.class, amqe.getCause().getClass()); Exception linked = ((JMSException) amqe.getCause()).getLinkedException(); assertEquals("Exception was wrong type", AMQAuthenticationException.class, linked.getClass()); 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 d2c677c8a5..0b0a297726 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 @@ -109,6 +109,7 @@ public class SimpleACLTest extends TestCase implements ConnectionListener if (amqe.getCause() instanceof Exception) { System.err.println("QPID-594 : WARNING RACE CONDITION. Unable to determine cause of Connection Failure."); + return; } assertEquals("Linked Exception Incorrect", JMSException.class, amqe.getCause().getClass()); Exception linked = ((JMSException) amqe.getCause()).getLinkedException(); |