Search in sources :

Example 6 with PasPollingConsumer

use of com.adaptris.core.jms.PasPollingConsumer in project interlok by adaptris.

the class ActiveMqPasPollingConsumerTest method testInitClientOnly.

@Test
public void testInitClientOnly() throws Exception {
    PasPollingConsumer consumer = create();
    consumer.setClientId("xxxx");
    try {
        consumer.init();
        fail("Should fail due to missing subscription Id");
    } catch (CoreException e) {
    // expected
    }
}
Also used : PasPollingConsumer(com.adaptris.core.jms.PasPollingConsumer) CoreException(com.adaptris.core.CoreException) Test(org.junit.Test)

Aggregations

PasPollingConsumer (com.adaptris.core.jms.PasPollingConsumer)6 CoreException (com.adaptris.core.CoreException)4 Test (org.junit.Test)4 StandaloneConsumer (com.adaptris.core.StandaloneConsumer)1 StandardWorkflow (com.adaptris.core.StandardWorkflow)1 JmsConnection (com.adaptris.core.jms.JmsConnection)1 TimeInterval (com.adaptris.util.TimeInterval)1 Random (java.util.Random)1 ThreadLocalRandom (java.util.concurrent.ThreadLocalRandom)1