Annotation Interface RabbitAvailable


@ExtendWith(RabbitAvailableCondition.class) @Target(TYPE) @Retention(RUNTIME) @Documented public @interface RabbitAvailable
Test classes annotated with this will not run if there is no broker on localhost.
Since:
2.0.2
Author:
Gary Russell
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Requires the management plugin to be available.
    boolean
    Purge the test queues after each test.
    The queues to create and ensure empty; they will be deleted after the test class completes.
    The queues to create and ensure empty; they will be deleted after the test class completes.
  • Element Details

    • value

      @AliasFor("queues") String[] value
      The queues to create and ensure empty; they will be deleted after the test class completes.
      Returns:
      the queues.
      Since:
      2.2
      Default:
      {}
    • queues

      @AliasFor("value") String[] queues
      The queues to create and ensure empty; they will be deleted after the test class completes.
      Returns:
      the queues.
      Default:
      {}
    • management

      boolean management
      Requires the management plugin to be available.
      Returns:
      true to require a management plugin.
      Default:
      false
    • purgeAfterEach

      boolean purgeAfterEach
      Purge the test queues after each test.
      Returns:
      true to purge (default).
      Since:
      2.2
      Default:
      true