public class CompressionRegionOperationsDUnitTest 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 String |
REGION_NAME
The name of our test region.
|
static int |
TEST_VM
Test virtual machine number.
|
static String |
VALUE_1
A value.
|
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
CompressionRegionOperationsDUnitTest(String name)
Creates a new CompressionRegionOperationsDUnitTest.
|
| 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 |
testGetPutOperations()
Invokes basic get/put operations tests on the test vm.
|
void |
testGetPutOperationsWithByteArrays()
Tests compressed put/get region operations using byte[] values.
|
void |
testGetPutOperationsWithCachedDeserializable()
Tests compressed put/get region operations using CachedDeserializable values.
|
void |
testKeysAndValuesOperations()
Invokes key, value operations using 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 CompressionRegionOperationsDUnitTest(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 CacheTestCaseExceptionpublic void testGetPutOperations()
public void testKeysAndValuesOperations()
public void testGetPutOperationsWithCachedDeserializable()
testGetPutOperations()public void testGetPutOperationsWithByteArrays()
testGetPutOperations()protected VM getVM(int vm)
vm - a virtual machine identifier.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.