Search in sources :

Example 1 with ActiveMQTempTopic

use of org.apache.activemq.command.ActiveMQTempTopic in project activemq-artemis by apache.

the class ActiveMQTempTopicTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ActiveMQTempTopic info = (ActiveMQTempTopic) object;
}
Also used : ActiveMQTempTopic(org.apache.activemq.command.ActiveMQTempTopic)

Example 2 with ActiveMQTempTopic

use of org.apache.activemq.command.ActiveMQTempTopic in project activemq-artemis by apache.

the class ActiveMQTempTopicTest method createObject.

@Override
public Object createObject() throws Exception {
    ActiveMQTempTopic info = new ActiveMQTempTopic();
    populateObject(info);
    return info;
}
Also used : ActiveMQTempTopic(org.apache.activemq.command.ActiveMQTempTopic)

Example 3 with ActiveMQTempTopic

use of org.apache.activemq.command.ActiveMQTempTopic in project activemq-artemis by apache.

the class ActiveMQTempTopicTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ActiveMQTempTopic info = (ActiveMQTempTopic) object;
}
Also used : ActiveMQTempTopic(org.apache.activemq.command.ActiveMQTempTopic)

Example 4 with ActiveMQTempTopic

use of org.apache.activemq.command.ActiveMQTempTopic in project activemq-artemis by apache.

the class MessageTransformationTest method testTransformDestination.

/**
 * Tests transforming destinations into ActiveMQ's destination
 * implementation.
 */
public void testTransformDestination() throws Exception {
    assertTrue("Transforming a TempQueue destination to an ActiveMQTempQueue", ActiveMQMessageTransformation.transformDestination(new ActiveMQTempQueue()) instanceof ActiveMQTempQueue);
    assertTrue("Transforming a TempTopic destination to an ActiveMQTempTopic", ActiveMQMessageTransformation.transformDestination(new ActiveMQTempTopic()) instanceof ActiveMQTempTopic);
    assertTrue("Transforming a Queue destination to an ActiveMQQueue", ActiveMQMessageTransformation.transformDestination(new ActiveMQQueue()) instanceof ActiveMQQueue);
    assertTrue("Transforming a Topic destination to an ActiveMQTopic", ActiveMQMessageTransformation.transformDestination(new ActiveMQTopic()) instanceof ActiveMQTopic);
    assertTrue("Transforming a Destination to an ActiveMQDestination", ActiveMQMessageTransformation.transformDestination(new ActiveMQTopic()) instanceof ActiveMQDestination);
}
Also used : ActiveMQTopic(org.apache.activemq.command.ActiveMQTopic) ActiveMQTempTopic(org.apache.activemq.command.ActiveMQTempTopic) ActiveMQQueue(org.apache.activemq.command.ActiveMQQueue) ActiveMQTempQueue(org.apache.activemq.command.ActiveMQTempQueue) ActiveMQDestination(org.apache.activemq.command.ActiveMQDestination)

Example 5 with ActiveMQTempTopic

use of org.apache.activemq.command.ActiveMQTempTopic in project activemq-artemis by apache.

the class ActiveMQTempTopicTest method createObject.

@Override
public Object createObject() throws Exception {
    ActiveMQTempTopic info = new ActiveMQTempTopic();
    populateObject(info);
    return info;
}
Also used : ActiveMQTempTopic(org.apache.activemq.command.ActiveMQTempTopic)

Aggregations

ActiveMQTempTopic (org.apache.activemq.command.ActiveMQTempTopic)7 URI (java.net.URI)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 Connection (javax.jms.Connection)1 Message (javax.jms.Message)1 MessageListener (javax.jms.MessageListener)1 TextMessage (javax.jms.TextMessage)1 ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)1 DeadLetterStrategy (org.apache.activemq.broker.region.policy.DeadLetterStrategy)1 PolicyEntry (org.apache.activemq.broker.region.policy.PolicyEntry)1 PolicyMap (org.apache.activemq.broker.region.policy.PolicyMap)1 PriorityDispatchPolicy (org.apache.activemq.broker.region.policy.PriorityDispatchPolicy)1 SharedDeadLetterStrategy (org.apache.activemq.broker.region.policy.SharedDeadLetterStrategy)1 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)1 ActiveMQQueue (org.apache.activemq.command.ActiveMQQueue)1 ActiveMQTempQueue (org.apache.activemq.command.ActiveMQTempQueue)1 ActiveMQTextMessage (org.apache.activemq.command.ActiveMQTextMessage)1 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)1