Package org.apache.activemq.junit
Class ActiveMQTopicPublisherResource
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- org.apache.activemq.junit.AbstractActiveMQClientResource
-
- org.apache.activemq.junit.AbstractActiveMQProducerResource
-
- org.apache.activemq.junit.ActiveMQTopicPublisherResource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ActiveMQTopicPublisherResource extends AbstractActiveMQProducerResource
-
-
Constructor Summary
Constructors Constructor Description ActiveMQTopicPublisherResource(String destinationName, URI brokerURI)
ActiveMQTopicPublisherResource(String destinationName, URI brokerURI, String userName, String password)
ActiveMQTopicPublisherResource(String destinationName, ActiveMQConnectionFactory connectionFactory)
ActiveMQTopicPublisherResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createClient()
String
getDestinationName()
byte
getDestinationType()
-
Methods inherited from class org.apache.activemq.junit.AbstractActiveMQProducerResource
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
-
ActiveMQTopicPublisherResource
public ActiveMQTopicPublisherResource(String destinationName, ActiveMQConnectionFactory connectionFactory)
-
ActiveMQTopicPublisherResource
public ActiveMQTopicPublisherResource(String destinationName, URI brokerURI)
-
ActiveMQTopicPublisherResource
public ActiveMQTopicPublisherResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
-
Method Detail
-
getDestinationName
public String getDestinationName()
- Overrides:
getDestinationName
in classAbstractActiveMQProducerResource
-
getDestinationType
public byte getDestinationType()
- Specified by:
getDestinationType
in classAbstractActiveMQClientResource
-
createClient
protected void createClient() throws JMSException
- Specified by:
createClient
in classAbstractActiveMQClientResource
- Throws:
JMSException
-
-