Search in sources :

Example 1 with JmsProviderMetadata

use of org.apache.camel.component.jms.JmsProviderMetadata in project camel by apache.

the class JmsProviderTest method testTemporaryDestinationTypes.

@Test
public void testTemporaryDestinationTypes() throws Exception {
    JmsEndpoint endpoint = getMandatoryEndpoint("activemq:test.queue", JmsEndpoint.class);
    JmsConfiguration configuration = endpoint.getConfiguration();
    JmsProviderMetadata providerMetadata = configuration.getProviderMetadata();
    assertNotNull("provider", providerMetadata);
    Class<? extends TemporaryQueue> queueType = endpoint.getTemporaryQueueType();
    Class<? extends TemporaryTopic> topicType = endpoint.getTemporaryTopicType();
    log.info("Found queue type: " + queueType);
    log.info("Found topic type: " + topicType);
    assertNotNull("queueType", queueType);
    assertNotNull("topicType", topicType);
    assertEquals("queueType", ActiveMQTempQueue.class, queueType);
    assertEquals("topicType", ActiveMQTempTopic.class, topicType);
}
Also used : JmsProviderMetadata(org.apache.camel.component.jms.JmsProviderMetadata) JmsEndpoint(org.apache.camel.component.jms.JmsEndpoint) JmsConfiguration(org.apache.camel.component.jms.JmsConfiguration) Test(org.junit.Test)

Aggregations

JmsConfiguration (org.apache.camel.component.jms.JmsConfiguration)1 JmsEndpoint (org.apache.camel.component.jms.JmsEndpoint)1 JmsProviderMetadata (org.apache.camel.component.jms.JmsProviderMetadata)1 Test (org.junit.Test)1