@@ -49,13 +49,6 @@
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>false</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
||||
@@ -316,7 +316,7 @@ public class RabbitMessageChannelBinder extends
|
||||
"the RabbitMQ binder does not support embedded headers since RabbitMQ supports headers natively");
|
||||
String prefix = producerProperties.getExtension().getPrefix();
|
||||
String exchangeName = producerDestination.getName();
|
||||
String destination = StringUtils.isEmpty(prefix) ? exchangeName
|
||||
String destination = !StringUtils.hasText(prefix) ? exchangeName
|
||||
: exchangeName.substring(prefix.length());
|
||||
RabbitProducerProperties extendedProperties = producerProperties.getExtension();
|
||||
final MessageHandler endpoint;
|
||||
|
||||
@@ -26,6 +26,7 @@ import org.junit.jupiter.api.Test;
|
||||
import org.springframework.amqp.rabbit.listener.MessageListenerContainer;
|
||||
import org.springframework.boot.WebApplicationType;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.cloud.stream.binder.BinderFactory;
|
||||
import org.springframework.cloud.stream.binder.Binding;
|
||||
@@ -128,7 +129,8 @@ public class RabbitStreamBinderModuleTests {
|
||||
}
|
||||
|
||||
@Bean
|
||||
Environment env(ConsumerBuilder consumerBuilder, ProducerBuilder producerBuilder) {
|
||||
@ConditionalOnMissingBean
|
||||
Environment rabbitStreamEnvironment(ConsumerBuilder consumerBuilder, ProducerBuilder producerBuilder) {
|
||||
Environment env = mock(Environment.class);
|
||||
given(env.consumerBuilder()).willReturn(consumerBuilder);
|
||||
given(env.producerBuilder()).willReturn(producerBuilder);
|
||||
|
||||
Reference in New Issue
Block a user