public class Bug37210DUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
Bug37210DUnitTest(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
Close the cache
|
static void |
closeCacheClientProxyAndVerifyStats()
Close the CacheClientProxy of the client on the server and verify that
ha-stats are closed and the entry for the region is removed from
dispatchedMessagesMap.
|
static void |
createClientCache(String host,
Integer port)
Initializes the cache client
|
static Integer |
createServerCache()
Creates and starts the cache-server
|
static void |
doEntryOperations()
Do some PUT operations
|
void |
setUp()
Creates the cache server and sets the port
|
void |
tearDown2()
close the cache instances in server and client during tearDown
|
void |
testHAStatsCleanup()
This test does the following:
1)Create the client 2)Do some operations from the cache-server 3)Stop the primary cache-server 4)Explicity close the CacheClientProxy on the server. |
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, 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 Bug37210DUnitTest(String name)
name - -
name for this test instancepublic void setUp()
throws Exception
setUp in class DistributedTestCaseException - -
thrown if any problem occurs in initializing the testpublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseException - thrown if any problem occurs in closing cachepublic void testHAStatsCleanup()
throws Exception
Exception - -
thrown if any problem occurs in test executionpublic static Integer createServerCache() throws Exception
Exception - -
thrown if any problem occurs in cache/server creationpublic static void createClientCache(String host, Integer port) throws Exception
port - -
port for the primary cache-serverException-thrown - if any problem occurs in initializing the clientExceptionpublic static void closeCacheClientProxyAndVerifyStats()
public static void doEntryOperations()
throws Exception
Exception - -
thrown if any exception occurs in doing PUTspublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.