org.mule.util.queue
Class AbstractTransactionQueueManagerTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mule.tck.AbstractMuleTestCase
              extended by org.mule.util.queue.AbstractTransactionQueueManagerTestCase
All Implemented Interfaces:
Test, TestCaseWatchdogTimeoutHandler
Direct Known Subclasses:
FilePersistenceTestCase, NoPersistenceTestCase

public abstract class AbstractTransactionQueueManagerTestCase
extends AbstractMuleTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase
AbstractMuleTestCase.TestInfo
 
Field Summary
protected  Log logger
          logger used by this class
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
callbackCalled, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE
 
Constructor Summary
AbstractTransactionQueueManagerTestCase()
           
 
Method Summary
protected abstract  org.mule.util.queue.TransactionalQueueManager createQueueManager()
           
protected abstract  boolean isPersistent()
           
protected  void purgeQueue(org.mule.util.queue.Queue queue)
           
 void testBench()
           
 void testOffer()
           
 void testPeek()
           
 void testPoll()
           
 void testPutTake()
           
 void testPutWithPersistence()
           
 void testTakePut()
           
 void testTakePutOverCapacity()
           
 void testTakePutRollbackPut()
           
 void testTransactedPutCommitWithPersistence()
           
 void testTransactedPutRollbackWithPersistence()
           
 void testTransactionsOnMultipleQueues()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
configureMuleContext, createMuleContext, createTestInfo, createWatchdog, disposeManager, doSetUp, doTearDown, getBuilder, getConfigurationResources, getName, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEvent, getTestInfo, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransformer, handleTimeout, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isDisposeManagerPerSuite, isExcluded, isOffline, isStartContext, registerTestMethod, run, runBare, setDisposeManagerPerSuite, setName, setStartContext, setUp, suitePostTearDown, suitePreSetUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class

Constructor Detail

AbstractTransactionQueueManagerTestCase

public AbstractTransactionQueueManagerTestCase()
Method Detail

createQueueManager

protected abstract org.mule.util.queue.TransactionalQueueManager createQueueManager()
                                                                             throws Exception
Throws:
Exception

isPersistent

protected abstract boolean isPersistent()

testPutTake

public void testPutTake()
                 throws Exception
Throws:
Exception

testTakePut

public void testTakePut()
                 throws Exception
Throws:
Exception

testTakePutRollbackPut

public void testTakePutRollbackPut()
                            throws Exception
Throws:
Exception

testTakePutOverCapacity

public void testTakePutOverCapacity()
                             throws Exception
Throws:
Exception

testPutWithPersistence

public void testPutWithPersistence()
                            throws Exception
Throws:
Exception

testTransactedPutCommitWithPersistence

public void testTransactedPutCommitWithPersistence()
                                            throws Exception
Throws:
Exception

testTransactedPutRollbackWithPersistence

public void testTransactedPutRollbackWithPersistence()
                                              throws Exception
Throws:
Exception

testTransactionsOnMultipleQueues

public void testTransactionsOnMultipleQueues()
                                      throws Exception
Throws:
Exception

testPoll

public void testPoll()
              throws Exception
Throws:
Exception

testPeek

public void testPeek()
              throws Exception
Throws:
Exception

testOffer

public void testOffer()
               throws Exception
Throws:
Exception

testBench

public void testBench()
               throws Exception
Throws:
Exception

purgeQueue

protected void purgeQueue(org.mule.util.queue.Queue queue)
                   throws InterruptedException
Throws:
InterruptedException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.