Spring AMQP

org.springframework.amqp.rabbit.test
Class RabbitTestExecutionListener

java.lang.Object
  extended by org.springframework.test.context.support.AbstractTestExecutionListener
      extended by 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

Constructor Summary
RabbitTestExecutionListener()
           
 
Method Summary
 void afterTestClass(TestContext testContext)
           
 void beforeTestClass(TestContext testContext)
           
 
Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener
afterTestMethod, beforeTestMethod, prepareTestInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RabbitTestExecutionListener

public RabbitTestExecutionListener()
Method Detail

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

Spring AMQP

Copyright © 2010. All Rights Reserved.