public class RabbitTestSupport extends AbstractExternalResourceTestSupport<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
Rule
that detects the fact that RabbitMQ is available on localhost.Modifier and Type | Class and Description |
---|---|
static class |
RabbitTestSupport.RabbitProxy
Test class to allow testing deferred entity declarations when RabbitMQ is down.
|
logger, resource, SCS_EXTERNAL_SERVERS_REQUIRED
Constructor and Description |
---|
RabbitTestSupport() |
RabbitTestSupport(boolean management) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupResource()
Perform cleanup of the
AbstractExternalResourceTestSupport.resource field, which is guaranteed to be non null. |
protected void |
obtainResource()
Try to obtain and validate a resource.
|
apply, getResource
public RabbitTestSupport()
public RabbitTestSupport(boolean management)
protected void obtainResource() throws Exception
AbstractExternalResourceTestSupport
AbstractExternalResourceTestSupport.resource
field with a valid resource and return normally, or throw an
exception.obtainResource
in class AbstractExternalResourceTestSupport<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
Exception
protected void cleanupResource() throws Exception
AbstractExternalResourceTestSupport
AbstractExternalResourceTestSupport.resource
field, which is guaranteed to be non null.cleanupResource
in class AbstractExternalResourceTestSupport<org.springframework.amqp.rabbit.connection.CachingConnectionFactory>
Exception
- any exception thrown by this method will be logged and swallowedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.