public class QueuePersistenceObjectStoreTestCase extends AbstractObjectStoreContractTestCase
Modifier and Type | Field and Description |
---|---|
org.junit.rules.TemporaryFolder |
tempFolder |
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, muleContext, RECEIVE_TIMEOUT, TEST_MESSAGE, TEST_PAYLOAD, WORKING_DIRECTORY_SYSTEM_PROPERTY_KEY, workingDirectory
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
QueuePersistenceObjectStoreTestCase() |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
createKey() |
protected void |
doSetUp()
Enables the adding of extra behavior on the set up stage of a test right
after the creation of the mule context in
AbstractMuleContextTestCase.setUpMuleContext() . |
QueuePersistenceObjectStore<Serializable> |
getObjectStore() |
Serializable |
getStorableValue() |
void |
queueFilesAreRemovedWhenSerializationFails() |
void |
testAllKeysOnNotYetOpenedStore() |
void |
testCreatingTheObjectStoreThrowsMuleRuntimeException() |
void |
testListExistingFiles() |
void |
testMonitoredWrapper() |
void |
testRemove() |
void |
testRetrieveFileFromDisk() |
clear, testContainsWithNullKey, testRemoveWithNullKey, testRemoveWithUnboundKey, testRetrieveUnboundKey, testRetrieveWithNullKey, testStoreWithExistingKey, testStoreWithNullKey
addBuilders, configureMuleContext, createMuleContext, createObject, createObject, disposeContext, disposeContextPerTest, doSetUpBeforeMuleContextCreation, doTearDown, doTearDownAfterMuleContextDispose, getBuilder, getConfigurationResources, getFileInsideWorkingDirectory, getNonBlockingResponse, getNonBlockingTestEventUsingFlow, getSensingNullMessageProcessor, getStartUpProperties, getTestConnector, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestEventContext, getTestEventUsingFlow, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestInboundEndpoint, getTestMuleMessage, getTestMuleMessage, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestOutboundEndpoint, getTestService, getTestService, getTestService, getTestSession, getTestTransactedInboundEndpoint, getTestTransformer, getTriggerableMessageSource, getTriggerableMessageSource, getWorkingDirectory, initialiseObject, isDisposeContextPerClass, isGracefulShutdown, isStartContext, setDisposeContextPerClass, setStartContext, setUpMuleContext
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
public org.junit.rules.TemporaryFolder tempFolder
protected void doSetUp() throws Exception
AbstractMuleContextTestCase
AbstractMuleContextTestCase.setUpMuleContext()
.
Under normal circumstances this method could be replaced by a
@Before
annotated method.
doSetUp
in class AbstractMuleContextTestCase
Exception
- if something fails that should halt the test casepublic QueuePersistenceObjectStore<Serializable> getObjectStore() throws ObjectStoreException
getObjectStore
in class AbstractObjectStoreContractTestCase
ObjectStoreException
public Serializable getStorableValue()
getStorableValue
in class AbstractObjectStoreContractTestCase
protected Serializable createKey()
createKey
in class AbstractObjectStoreContractTestCase
public void testCreatingTheObjectStoreThrowsMuleRuntimeException()
public void testAllKeysOnNotYetOpenedStore() throws ObjectStoreException
ObjectStoreException
public void queueFilesAreRemovedWhenSerializationFails() throws ObjectStoreException
ObjectStoreException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.