com.github.fridujo.rabbitmq.mock.exchange.MockDirectExchange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbitmq-mock Show documentation
Show all versions of rabbitmq-mock Show documentation
Mock for RabbitMQ Java amqp-client
package com.github.fridujo.rabbitmq.mock.exchange;
import com.github.fridujo.rabbitmq.mock.AmqArguments;
import com.github.fridujo.rabbitmq.mock.ReceiverRegistry;
import java.util.Map;
public class MockDirectExchange extends BindableMockExchange {
public MockDirectExchange(String name, AmqArguments arguments, ReceiverRegistry receiverRegistry) {
super(name, arguments, receiverRegistry);
}
@Override
protected boolean match(String bindingKey, Map bindArguments, String routingKey, Map headers) {
return bindingKey.equals(routingKey);
}
}