public class CompressionCacheListenerDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_1
A key.
|
static String |
KEY_2
Another key.
|
static String |
KEY_3
Yet another key.
|
static BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> |
LISTENER_QUEUE
Queues events received by the CacheListener.
|
static String |
REGION_NAME
The name of our test region.
|
static int |
TEST_VM
Test virtual machine number.
|
static String |
VALUE_1
A value.
|
static BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> |
WRITER_QUEUE
A queue for storing events received by a CacheWriter.
|
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
CompressionCacheListenerDUnitTest(String name)
Creates a new CompressionCacheListenerDUnitTest.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
createCompressedRegionOnVm(VM vm,
String name,
com.gemstone.gemfire.compression.Compressor compressor,
boolean offHeap) |
protected void |
createRegion() |
protected VM |
getVM(int vm)
Returns the VM for a given identifier.
|
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testCacheListenerAndWriter()
Tests CacheWriter and CacheListener events on the test vm.
|
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, staticPause, tearDown, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic static final String REGION_NAME
public static final int TEST_VM
public static final String KEY_1
public static final String KEY_2
public static final String KEY_3
public static final String VALUE_1
public static final BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> LISTENER_QUEUE
public static final BlockingQueue<com.gemstone.gemfire.cache.EntryEvent> WRITER_QUEUE
public CompressionCacheListenerDUnitTest(String name)
name - a test name.public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionprotected void createRegion()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionprotected VM getVM(int vm)
vm - a virtual machine identifier.public void testCacheListenerAndWriter()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.