diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-09-02 19:13:04 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-09-02 19:13:04 +0000 |
| commit | 76de9357f5eda14170970561c956c02c2fc74572 (patch) | |
| tree | 8ca8e34064b7b8176f9f2c3494353e8067fe2f41 /qpid/java | |
| parent | b1c54ac8df650989ebebd878af0b6e563ee527ab (diff) | |
| download | qpid-python-76de9357f5eda14170970561c956c02c2fc74572.tar.gz | |
QPID-2845
Modified the existing test cases to use the correct format when specifying x-declare arguments.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@992064 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java index d7e19a2e19..5aa9db60ea 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/test/client/destination/AddressBasedDestinationTest.java @@ -203,8 +203,10 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase "x-declare: " + "{" + "auto-delete: true," + - "'qpid.max_size': 1000," + - "'qpid.max_count': 100" + + "arguments: {" + + "'qpid.max_size': 1000," + + "'qpid.max_count': 100" + + "}" + "}, " + "x-bindings: [{exchange : 'amq.direct', key : test}, " + "{exchange : 'amq.fanout'}," + @@ -260,8 +262,10 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase "{ " + "type:direct, " + "auto-delete: true, " + - "'qpid.msg_sequence': 1, " + - "'qpid.ive': 1" + + "arguments: {" + + "'qpid.msg_sequence': 1, " + + "'qpid.ive': 1" + + "}" + "}" + "}" + "}"; @@ -293,7 +297,7 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase "x-declare: " + "{ " + "auto-delete: true," + - "'qpid.max_count': 100" + + "arguments: {'qpid.max_count': 100}" + "}, " + "x-bindings: [{exchange : 'amq.direct', key : test}, " + "{exchange : 'amq.topic', key : 'a.#'}," + @@ -391,7 +395,7 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase { Hashtable<String,String> map = new Hashtable<String,String>(); map.put("destination.myQueue1", "ADDR:my-queue/hello; {create: always, node: " + - "{x-declare: {auto-delete: true,'qpid.max_size': 1000}}}"); + "{x-declare: {auto-delete: true, arguments : {'qpid.max_size': 1000}}}}"); map.put("destination.myQueue2", "ADDR:my-queue2; { create: receiver }"); @@ -469,7 +473,7 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase String addr = "ADDR:amq.direct/x512; {create: receiver, " + "link : {name : 'MY.RESP.QUEUE', " + "x-declare : { auto-delete: true, exclusive: true, " + - "'qpid.max_size': 1000, 'qpid.policy_type': ring } } }"; + "arguments : {'qpid.max_size': 1000, 'qpid.policy_type': ring }} } }"; Destination replyTo = new AMQAnyDestination(addr); Destination dest =new AMQAnyDestination("ADDR:amq.direct/Hello"); @@ -527,7 +531,7 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase String addr = "ADDR:amq.direct/x512; {create: receiver, " + "link : {name : 'MY.RESP.QUEUE', " + "x-declare : { auto-delete: true, exclusive: true, " + - "'qpid.max_size': 1000, 'qpid.policy_type': ring } } }"; + "arguments : {'qpid.max_size': 1000, 'qpid.policy_type': ring} } } }"; queue = ssn.createQueue(addr); prod = ssn.createProducer(queue); @@ -574,8 +578,10 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase "{ " + "type:direct, " + "auto-delete: true, " + - "'qpid.msg_sequence': 1, " + - "'qpid.ive': 1" + + "arguments: {" + + "'qpid.msg_sequence': 1, " + + "'qpid.ive': 1" + + "}" + "}" + "}, " + "link: {name : my-topic, " + @@ -649,7 +655,7 @@ public class AddressBasedDestinationTest extends QpidBrokerTestCase String addr = "ADDR:my-ring-queue; {create: always, mode: browse, " + "node: {x-bindings: [{exchange : 'amq.direct', key : test}], " + - "x-declare:{'qpid.policy_type':ring, 'qpid.max_count':2}}}"; + "x-declare:{arguments : {'qpid.policy_type':ring, 'qpid.max_count':2}}}}"; Destination dest = ssn.createQueue(addr); MessageConsumer browseCons = ssn.createConsumer(dest); |
