public class Bug36853EventsExpiryDUnitTest extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache
The cache instance for test cases
|
protected static boolean |
proceedForValidation
Boolean to indicate the client to proceed for validation
|
protected static int |
putsRecievedByClient
Counter to indicate number of puts recieved by client
|
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
Bug36853EventsExpiryDUnitTest(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
Closes the cache
|
static void |
createClientCache(String hostName,
Integer port)
Creates the client cache
|
static Integer |
createServerCache()
Creates cache and starts the bridge-server
|
static void |
generateEvents()
First generates some events, then waits for the time equal to that of
delayed start of the dispatcher and then does put on the last key for few
iterations.
|
void |
setUp()
Sets up the cache-server and client for the test
|
void |
tearDown2()
Closes the caches on clients and servers
|
void |
testEventsExpiryBug()
First generates some events, then waits for the time equal to that of
delayed start of the dispatcher and then does put on the last key for few
iterations.
|
static void |
validateEventCountAtClient()
Waits for the listener to receive all events and validates that no
exception occured in client
|
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, 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, toStringprotected static com.gemstone.gemfire.cache.Cache cache
protected static volatile boolean proceedForValidation
protected static volatile int putsRecievedByClient
public Bug36853EventsExpiryDUnitTest(String name)
name - public void setUp()
throws Exception
setUp in class DistributedTestCaseException - -
thrown in any problem occurs in setUppublic static Integer createServerCache() throws Exception
thrown - in any problem occurs in creating and starting cache-serverExceptionpublic static void createClientCache(String hostName, Integer port) throws Exception
hostName - the name of the server's machineport - -
bridgeserver portException - -
thrown if any problem occurs in setting up the clientpublic static void generateEvents()
throws Exception
Exception - -
thrown if any problem occurs in put operationpublic void testEventsExpiryBug()
throws Exception
Exception - -
thrown if any exception occurs in testpublic static void validateEventCountAtClient()
throws Exception
Exceptionpublic static void closeCache()
public void tearDown2()
throws Exception
tearDown2 in class CacheTestCaseException - -
thrown if any problem occurs in closing client and server caches.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.