A broker setup is used for integration tests for easily setting up exchanges and queues in a broker during a test and removing them afterwards properly.
In a JUnit test, it is recommended to use the declaring methods (e.g. {@link #declareAndBindQueue(String,String,String)} ) of a broker setup in the @Before or @BeforeClass phase. In the @After or @AfterClass phase, use the {@link #tearDown()}method to clean up the broker after your tests have run.
@author christian.bick
|
|
|
|