org.mule.transport.jms
Class AbstractJmsRedeliveryTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.tck.junit4.AbstractMuleContextTestCase
          extended by org.mule.tck.junit4.FunctionalTestCase
              extended by org.mule.tck.AbstractServiceAndFlowTestCase
                  extended by org.mule.transport.jms.AbstractJmsRedeliveryTestCase
Direct Known Subclasses:
JmsInfiniteRedeliveryTestCase, JmsNoRedeliveryTestCase, JmsRedeliveryTestCase

public abstract class AbstractJmsRedeliveryTestCase
extends AbstractServiceAndFlowTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
AbstractServiceAndFlowTestCase.ConfigVariant
 
Field Summary
protected  CounterCallback callback
           
protected  MuleClient client
           
protected static String JMS_DEAD_LETTER
           
protected static String JMS_INPUT_QUEUE
           
protected static String JMS_INPUT_QUEUE2
           
protected  Latch messageRedeliveryExceptionFired
           
protected  int timeout
           
 
Fields inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
configResources, variant
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
AbstractJmsRedeliveryTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant, String configResources)
           
 
Method Summary
protected  void assertMessageInDlq()
           
protected  void assertMessageInDlqRollbackEs()
           
protected  void assertNoMessageInDlq(String location)
           
 void cleanUpMaxRedelivery()
           
protected abstract  int getMaxRedelivery()
           
protected abstract  int getMaxRedeliveryAttempts()
           
static Collection<Object[]> parameters()
           
protected  void purgeQueue()
           
 void setUp()
           
protected  void setupCallback()
           
 
Methods inherited from class org.mule.tck.AbstractServiceAndFlowTestCase
doSetUp, doSetUpForFlow, doSetUpForService, getConfigResources, getTestHeader
 
Methods inherited from class org.mule.tck.junit4.FunctionalTestCase
clearFlowAssertions, getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString, stopFlowConstruct, testFlow, testFlow
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleContextTestCase
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doTearDown, getConfigurationResources, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_INPUT_QUEUE

protected static final String JMS_INPUT_QUEUE
See Also:
Constant Field Values

JMS_INPUT_QUEUE2

protected static final String JMS_INPUT_QUEUE2
See Also:
Constant Field Values

JMS_DEAD_LETTER

protected static final String JMS_DEAD_LETTER
See Also:
Constant Field Values

timeout

protected final int timeout

client

protected MuleClient client

messageRedeliveryExceptionFired

protected Latch messageRedeliveryExceptionFired

callback

protected CounterCallback callback
Constructor Detail

AbstractJmsRedeliveryTestCase

public AbstractJmsRedeliveryTestCase(AbstractServiceAndFlowTestCase.ConfigVariant variant,
                                     String configResources)
Method Detail

parameters

public static Collection<Object[]> parameters()

setUp

public void setUp()
           throws Exception
Throws:
Exception

assertMessageInDlq

protected void assertMessageInDlq()
                           throws MuleException
Throws:
MuleException

assertMessageInDlqRollbackEs

protected void assertMessageInDlqRollbackEs()
                                     throws Exception
Throws:
Exception

purgeQueue

protected void purgeQueue()
                   throws MuleException
Throws:
MuleException

setupCallback

protected void setupCallback()
                      throws Exception
Throws:
Exception

assertNoMessageInDlq

protected void assertNoMessageInDlq(String location)
                             throws MuleException
Throws:
MuleException

cleanUpMaxRedelivery

public void cleanUpMaxRedelivery()

getMaxRedelivery

protected abstract int getMaxRedelivery()

getMaxRedeliveryAttempts

protected abstract int getMaxRedeliveryAttempts()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.