org.springframework.amqp.rabbit.test
Class RabbitTestExecutionListener
java.lang.Object
org.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.amqp.rabbit.test.RabbitTestExecutionListener
- All Implemented Interfaces:
- TestExecutionListener
public class RabbitTestExecutionListener
- extends AbstractTestExecutionListener
A TestExeuctionListener that will start/reset the RabbitMQ node before the methods in the
TestClass are executed. If the node was started before the test methods were executed,
the node will be stopped after the test methods are executed .
- Author:
- Mark Pollack
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RabbitTestExecutionListener
public RabbitTestExecutionListener()
beforeTestClass
public void beforeTestClass(TestContext testContext)
throws Exception
- Specified by:
beforeTestClass
in interface TestExecutionListener
- Overrides:
beforeTestClass
in class AbstractTestExecutionListener
- Throws:
Exception
afterTestClass
public void afterTestClass(TestContext testContext)
throws Exception
- Specified by:
afterTestClass
in interface TestExecutionListener
- Overrides:
afterTestClass
in class AbstractTestExecutionListener
- Throws:
Exception
Copyright © 2010. All Rights Reserved.