diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-09-08 14:28:26 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-09-08 14:28:26 +0000 |
| commit | bfb630b99af074431939371620ea500b5084e941 (patch) | |
| tree | 4261957b6b6d0b89db4aae3899941915e5994388 /java/systests/src | |
| parent | 88e35b17575fbeed5b1c58f23288fe2dc4bcf41b (diff) | |
| download | qpid-python-bfb630b99af074431939371620ea500b5084e941.tar.gz | |
Added a failure path for testRejectPolicy if an exception is not thrown.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995065 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/systests/src')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/test/client/queue/QueuePolicyTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/test/client/queue/QueuePolicyTest.java b/java/systests/src/main/java/org/apache/qpid/test/client/queue/QueuePolicyTest.java index 468fd7e994..268e879745 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/client/queue/QueuePolicyTest.java +++ b/java/systests/src/main/java/org/apache/qpid/test/client/queue/QueuePolicyTest.java @@ -45,7 +45,7 @@ public class QueuePolicyTest extends QpidBrokerTestCase MessageConsumer consumer = ssn.createConsumer(dest); MessageProducer prod = ssn.createProducer(ssn.createQueue("ADDR:amq.direct/test")); - for (int i=0; i<50; i++) + for (int i=0; i<6; i++) { prod.send(ssn.createMessage()); } @@ -54,6 +54,7 @@ public class QueuePolicyTest extends QpidBrokerTestCase { prod.send(ssn.createMessage()); ((AMQSession)ssn).sync(); + fail("The client did not receive an exception after exceeding the queue limit"); } catch (AMQException e) { |
