diff options
| author | Aidan Skinner <aidan@apache.org> | 2008-07-03 14:33:10 +0000 |
|---|---|---|
| committer | Aidan Skinner <aidan@apache.org> | 2008-07-03 14:33:10 +0000 |
| commit | 68ab8c644926c013554a6a5ea9c593bcc6462af0 (patch) | |
| tree | 66d6c68c9ce3b2360ff1ae0bd8dcf8cea2ad3454 /java/client/src/test | |
| parent | 8296f73e2535f6ad8dcc9421955b5e832dd0aff6 (diff) | |
| download | qpid-python-68ab8c644926c013554a6a5ea9c593bcc6462af0.tar.gz | |
QPID-962 Exception handling was... unpleasing... Fix up of patch from rhs
AMQConnection.java: Refactor listener and stack exceptions in a list. Add get lastException, which can now be any Exception. Don't set connected, let the delegate decide.
AMQConnectionDelegate_8_0.java, AMQConnectionDelete_0_10.java: set _connected to true if we suceed
AMQProtocolHandler.java: attainState can now throw any sort of Exception
AMQStateManager.java: attainState can now throw any Exception
ConnectionTest.java: check that exception cause is not null
AMQConnectionFailureException.java: Add ability to store a Collection of Exceptions in case there are multiple possible causes of the failure. Which there shouldn't be, but it can happen.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673688 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src/test')
| -rw-r--r-- | java/client/src/test/java/org/apache/qpid/test/unit/client/connection/ConnectionTest.java | 1 |
1 files changed, 1 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 f856e8c20b..97eed08ab1 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 @@ -134,6 +134,7 @@ public class ConnectionTest extends TestCase } catch (AMQException amqe) { + assertNotNull("No cause set", amqe.getCause()); if (amqe.getCause().getClass() == Exception.class) { System.err.println("QPID-594 : WARNING RACE CONDITION. Unable to determine cause of Connection Failure."); |
