Class WithRabbitMock.WithRabbitMockBuilder

java.lang.Object
fr.ght1pc9kc.testy.beat.extensions.WithRabbitMock.WithRabbitMockBuilder
Enclosing class:
WithRabbitMock

public static class WithRabbitMock.WithRabbitMockBuilder extends Object
Allow to build a Channel rabbit
  • Constructor Details

    • WithRabbitMockBuilder

      public WithRabbitMockBuilder()
  • Method Details

    • withEmbeddedBroker

      public WithRabbitMock.WithRabbitMockBuilder withEmbeddedBroker(EmbeddedBroker embeddedBroker)
      Define a customized embedded broker. If not set, a QpidEmbeddedBroker 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 communication
      exchangeQueueName - The name of queue for exchange
      Returns:
      the builder
    • build

      public WithRabbitMock build()
      Build the Rabbit Mock junit extension
      Returns:
      The extension