Package org.springframework.amqp.rabbit.junit
@NullMarked
package org.springframework.amqp.rabbit.junit
Provides support classes for JUnit tests.
-
ClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.A class that can be used to prevent integration tests from failing if the Rabbit broker application is not running or not accessible.The
RuntimeException
thrown when broker is not available on the provided host port.Global convenience class for all integration tests, carrying constants and other utilities for broker set up.Utility methods for JUnit rules and conditions.Deprecated, for removal: This API element is subject to removal in a future version.since 4.0 in favor of JUnit 5LogLevels
.Test classes annotated with this will change logging levels between tests.JUnit condition that adjusts and reverts log levels before/after each test.Test classes annotated with this will not run if an environment variable or system property (defaultRUN_LONG_INTEGRATION_TESTS
) is not present or does not have the value thatBoolean.parseBoolean(String)
evaluates totrue
.Deprecated, for removal: This API element is subject to removal in a future version.since 4.0 in favor of JUnit 5LongRunning
.ExecutionCondition
to skip long-running tests unless an environment variable or property is set.Test classes annotated with this will not run if there is no broker on localhost.JUnit5ExecutionCondition
.
RabbitAvailable
.