Package org.apache.activemq.junit
Class ActiveMQQueueSenderResource
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- org.apache.activemq.junit.AbstractActiveMQClientResource
-
- org.apache.activemq.junit.AbstractActiveMQProducerResource
-
- org.apache.activemq.junit.ActiveMQQueueSenderResource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ActiveMQQueueSenderResource extends AbstractActiveMQProducerResource
-
-
Constructor Summary
Constructors Constructor Description ActiveMQQueueSenderResource(String destinationName, URI brokerURI)
ActiveMQQueueSenderResource(String destinationName, URI brokerURI, String userName, String password)
ActiveMQQueueSenderResource(String destinationName, ActiveMQConnectionFactory connectionFactory)
ActiveMQQueueSenderResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createClient()
byte
getDestinationType()
-
Methods inherited from class org.apache.activemq.junit.AbstractActiveMQProducerResource
getDestinationName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageWithProperties, sendMessageWithProperties, sendMessageWithProperties, sendMessageWithProperties
-
Methods inherited from class org.apache.activemq.junit.AbstractActiveMQClientResource
after, before, createBytesMessage, createDestination, createMapMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createObjectMessage, createStreamMessage, createTextMessage, getBrokerURL, getClientId, setMessageProperties, start, stop
-
-
-
-
Constructor Detail
-
ActiveMQQueueSenderResource
public ActiveMQQueueSenderResource(String destinationName, ActiveMQConnectionFactory connectionFactory)
-
ActiveMQQueueSenderResource
public ActiveMQQueueSenderResource(String destinationName, URI brokerURI)
-
ActiveMQQueueSenderResource
public ActiveMQQueueSenderResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
-
Method Detail
-
getDestinationType
public byte getDestinationType()
- Specified by:
getDestinationType
in classAbstractActiveMQClientResource
-
createClient
protected void createClient() throws JMSException
- Specified by:
createClient
in classAbstractActiveMQClientResource
- Throws:
JMSException
-
-