Skip to content

Commit bb11b91

Browse files
author
Matthias Radestock
committed
merge default into v1_5_1
All the changes made on 'default' so far should go into v1_5_1. Which is lucky since we don't have to cherry pick.
2 parents b44da4f + 1091774 commit bb11b91

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ sibling.codegen.dir=../rabbitmq-codegen/
1616
spec.version=0.8
1717
bundle.out=${build.out}/bundle/com/rabbitmq/amqp-client/${impl.version}/
1818
javadoc.out=build/doc/api
19+
python.bin=python

build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<target name="amqp-generate" depends="amqp-generate-check"
4545
unless="amqp.generate.notRequired" description="generate AMQP.java and AMQImpl.java from AMQP spec">
4646
<mkdir dir="${src.generated}/com/rabbitmq/client/"/>
47-
<exec dir="." executable="python"
47+
<exec dir="." executable="${python.bin}"
4848
output="${src.generated}/com/rabbitmq/client/AMQP.java"
4949
errorproperty="amqp.generate.error1"
5050
resultproperty="amqp.generate.result1">
@@ -60,7 +60,7 @@
6060
</condition>
6161
</fail>
6262
<mkdir dir="${src.generated}/com/rabbitmq/client/impl"/>
63-
<exec dir="." executable="python"
63+
<exec dir="." executable="${python.bin}"
6464
output="${src.generated}/com/rabbitmq/client/impl/AMQImpl.java"
6565
errorproperty="amqp.generate.error2"
6666
resultproperty="amqp.generate.result2">

test/src/com/rabbitmq/client/test/functional/Routing.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,26 @@ public void testFanoutRouting() throws Exception {
144144
}
145145
}
146146

147+
public void testTopicRouting() throws Exception {
148+
149+
List<String> queues = new ArrayList<String>();
150+
151+
//100+ queues is the trigger point for bug20046
152+
for (int i = 0; i < 100; i++) {
153+
channel.queueDeclare();
154+
AMQP.Queue.DeclareOk ok = channel.queueDeclare();
155+
String q = ok.getQueue();
156+
channel.queueBind(q, "amq.topic", "#");
157+
queues.add(q);
158+
}
159+
160+
channel.basicPublish("amq.topic", "", null, "topic".getBytes());
161+
162+
for (String q : queues) {
163+
checkGet(q, true);
164+
}
165+
}
166+
147167
public void testUnbind() throws Exception {
148168
AMQP.Queue.DeclareOk ok = channel.queueDeclare();
149169
String queue = ok.getQueue();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy