RabbitMQ - GH-43 - Support Fix For Routing Key
See spring-cloud/spring-cloud-stream-binder-rabbit#43 Make Routing Key Check Method Name More Expressive
This commit is contained in:
committed by
Marius Bogoevici
parent
392b087af6
commit
51a7f8bf66
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2016 the original author or authors.
|
||||
* Copyright 2014-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -194,8 +194,7 @@ public abstract class PartitionCapableBinderTests<B extends AbstractTestBinder<?
|
||||
Binding<MessageChannel> outputBinding = binder.bindProducer("part.0", output, producerProperties);
|
||||
try {
|
||||
Object endpoint = extractEndpoint(outputBinding);
|
||||
assertThat(getEndpointRouting(endpoint))
|
||||
.contains(getExpectedRoutingBaseDestination("part.0", "test") + "-' + headers['partition']");
|
||||
checkRkExpressionForPartitionedModuleSpEL(endpoint);
|
||||
}
|
||||
catch (UnsupportedOperationException ignored) {
|
||||
}
|
||||
@@ -249,6 +248,11 @@ public abstract class PartitionCapableBinderTests<B extends AbstractTestBinder<?
|
||||
outputBinding.unbind();
|
||||
}
|
||||
|
||||
protected void checkRkExpressionForPartitionedModuleSpEL(Object endpoint) {
|
||||
assertThat(getEndpointRouting(endpoint))
|
||||
.contains(getExpectedRoutingBaseDestination("part.0", "test") + "-' + headers['partition']");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPartitionedModuleJava() throws Exception {
|
||||
B binder = getBinder();
|
||||
|
||||
Reference in New Issue
Block a user