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 /java/client/src | |
| 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
Diffstat (limited to 'java/client/src')
| -rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 6 |
1 files changed, 6 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()); |
