Class WithRabbitMock.WithRabbitMockBuilder
java.lang.Object
fr.ght1pc9kc.testy.beat.extensions.WithRabbitMock.WithRabbitMockBuilder
- Enclosing class:
- WithRabbitMock
Allow to build a Channel rabbit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the Rabbit Mock junit extensiondeclareQueueAndExchange
(String queueName, String exchangeQueueName) Declare the queues and exchange for rabbit communicationwithEmbeddedBroker
(EmbeddedBroker embeddedBroker) Define a customized embedded broker.
-
Constructor Details
-
WithRabbitMockBuilder
public WithRabbitMockBuilder()
-
-
Method Details
-
withEmbeddedBroker
Define a customized embedded broker. If not set, aQpidEmbeddedBroker
will be used by default.- Parameters:
embeddedBroker
- The embedded broker.- Returns:
- Builder instance.
-
declareQueueAndExchange
public WithRabbitMock.WithRabbitMockBuilder declareQueueAndExchange(String queueName, String exchangeQueueName) Declare the queues and exchange for rabbit communication- Parameters:
queueName
- The name of queue for communicationexchangeQueueName
- The name of queue for exchange- Returns:
- the builder
-
build
Build the Rabbit Mock junit extension- Returns:
- The extension
-