public class DeltaToRegionRelationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DeltaToRegionRelationDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
createClientCache(String host,
Integer port) |
static Integer |
createClientCache2(String host1,
String host2,
Integer port1,
Integer port2) |
static void |
createClientCache3(String host,
Integer port,
Boolean bool) |
static void |
createDelta(String regName) |
static Integer |
createServerCache() |
static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy |
getClientProxy() |
void |
intialSetUp() |
void |
intialSetUpForFailOver() |
static void |
noDeltaFailureOnServer() |
static void |
putDelta(String regName) |
static void |
registerKeys(String regionName,
Integer obj1,
Integer Obj2) |
static void |
registerRegex(String regionName,
String exp) |
static void |
resetFlags() |
static void |
setTestFlagForAskFullValue(Boolean bool) |
void |
setUp()
Sets up the test (noop).
|
static void |
stopCacheServer() |
void |
tearDown2()
Tears down the test.
|
void |
tearDownForFailOver() |
void |
tearDownforSimpleCase() |
void |
testDeltaToRegionForRegisterInterest()
This test does the following for single key Interest registration(RegisterInterestOp):
1)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 2)Verifies no create happens for region with data policy other then Empty; in map 3)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
testDeltaToRegionForRegisterInterestFailover()
This test does the following for single key Interest registration when failover(RegisterInterestOp):
1)Verifies when primary goes down, interest registration happen 2)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 3)Verifies no create happens for region with data policy other then Empty; in map |
void |
testDeltaToRegionForRegisterInterestList()
This test does the following for single key Interest registration(RegisterInterestListOp):
1)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 2)Verifies no create happens for region with data policy other then Empty; in map 3)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
testDeltaToRegionForRegisterInterestListFaliover()
This test does the following for single key Interest registration when failover(RegisterInterestListOp):
1)Verifies when primary goes down, interest registration happen 2)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 3)Verifies no create happens for region with data policy other then Empty; in map |
void |
testDeltaToRegionForRegisterInterestRegex()
This test does the following for single key Interest registration(Regex):
1)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 2)Verifies no create happens for region with data policy other then Empty; in map 3)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
testDeltaToRegionForRegisterInterestRegexFaliover()
This test does the following for single key Interest registration when failover(Regex):
1)Verifies when primary goes down, interest registration happen 2)Verifies create entry for region with data policy as Empty; in map stored in CacheCleintProxy 3)Verifies no create happens for region with data policy other then Empty; in map |
void |
testForEmptyDataPolicy()
This test does the following
1)Verifies that full object request should not get called
2)Full object sent to cachelessclient |
void |
testForEmptyDataPolicyWithCreate()
This test does the following
1)Verifies that full object should be sent on wire for first create on key
|
void |
validationForFailOver() |
static void |
validationOnServer() |
static void |
verifyNoDeltaPropagation() |
static void |
waitForCreate(String r) |
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 DeltaToRegionRelationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testDeltaToRegionForRegisterInterestRegex()
public void testDeltaToRegionForRegisterInterest()
public void testDeltaToRegionForRegisterInterestList()
public void testDeltaToRegionForRegisterInterestFailover()
public void testDeltaToRegionForRegisterInterestListFaliover()
public void testDeltaToRegionForRegisterInterestRegexFaliover()
public static void createClientCache(String host, Integer port) throws Exception
Exceptionpublic static Integer createClientCache2(String host1, String host2, Integer port1, Integer port2) throws Exception
Exceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy getClientProxy()
public static void stopCacheServer()
public void intialSetUp()
public void tearDownforSimpleCase()
public void intialSetUpForFailOver()
public void validationForFailOver()
public void tearDownForFailOver()
public static void createClientCache3(String host, Integer port, Boolean bool) throws Exception
Exceptionpublic static void putDelta(String regName)
public static void createDelta(String regName)
public static void setTestFlagForAskFullValue(Boolean bool)
public static void verifyNoDeltaPropagation()
public static void noDeltaFailureOnServer()
public static void waitForCreate(String r)
public void testForEmptyDataPolicy()
public void testForEmptyDataPolicyWithCreate()
public static void resetFlags()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.