Author: ritchiem
Date: Mon Mar 3 06:02:27 2008
New Revision: 633088
URL: http://svn.apache.org/viewvc?rev=633088&view=rev
Log:
QPID-594 QPID-107 Updated Connection missing AMQAuthenticationException problems
Modified:
incubator/qpid/branches/M2.1/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
(contents, props changed)
Modified:
incubator/qpid/branches/M2.1/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java?rev=633088&r1=633087&r2=633088&view=diff
==============================================================================
---
incubator/qpid/branches/M2.1/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java
(original)
+++
incubator/qpid/branches/M2.1/java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java
Mon Mar 3 06:02:27 2008
@@ -126,6 +126,12 @@
}
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());
Modified:
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java?rev=633088&r1=633087&r2=633088&view=diff
==============================================================================
---
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
(original)
+++
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
Mon Mar 3 06:02:27 2008
@@ -109,6 +109,7 @@
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();
Propchange:
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java
------------------------------------------------------------------------------
svn:eol-style = native