public class DeltaToRegionRelationCQRegistrationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DeltaToRegionRelationCQRegistrationDUnitTest(java.lang.String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
createClientCache(java.lang.String host,
java.lang.Integer port) |
static java.lang.Integer |
createClientCache2(java.lang.String host1,
java.lang.String host2,
java.lang.Integer port1,
java.lang.Integer port2) |
static java.lang.Integer |
createClientCache3(java.lang.String host1,
java.lang.String host2,
java.lang.Integer port1,
java.lang.Integer port2) |
static void |
createClientCacheWithNoRegion(java.lang.String host,
java.lang.Integer port) |
static java.lang.Integer |
createServerCache() |
static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy |
getClientProxy() |
void |
intialSetUp() |
void |
intialSetUpClientWithNoRegion() |
void |
intialSetUpForFailOver() |
void |
intialSetUpNoRegiononClientForFailOver() |
static void |
registerCq(java.lang.String name,
java.lang.String Cquery,
java.lang.Boolean cqWithIR) |
static void |
registerCqThroughPool(java.lang.String name,
java.lang.String Cquery,
java.lang.Boolean cqWithIR) |
void |
setUp()
Sets up the test (noop).
|
static void |
stopCacheServer() |
void |
tearDown2()
Tears down the test.
|
void |
tearDownForFailOver() |
void |
tearDownforSimpleCase() |
void |
testDeltaToRegionForRegisterCQ()
This test does the following for single cq registration(with out initial resultset):
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 |
testDeltaToRegionForRegisterCQFailover()
This test does the following for cq registration when failover(cq registration):
1)Verifies when primary goes down, cq 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 |
testDeltaToRegionForRegisterCQIR()
This test does the following for single cq registration(with initial resultset):
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 |
testDeltaToRegionForRegisterCQIRFaliover()
This test does the following for cq registration with initial result set when failover(cq registration):
1)Verifies when primary goes down, cq 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 |
testDeltaToRegionForRegisterCQIRFromPoolFaliover()
This test does the following for cq registration with initial result set through pool when failover(cq registration):
1)Verifies when primary goes down, cq registration happen 2)Verifies create entry for region in map stored in CacheCleintProxy |
void |
testDeltaToRegionForRegisterCQIRThroughPool()
This test does the following for single cq registration from pool (with initial resultset):
1)Verifies create entry for region in map stored in CacheCleintProxy 2)Verifies multiple and different interest registration (key/list) should not create multiple entries in map |
void |
validationForCQFiredFromPoolFailOver() |
void |
validationForFailOver() |
static void |
validationOnServer() |
static void |
validationOnServerForCqRegistrationFromPool() |
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 DeltaToRegionRelationCQRegistrationDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testDeltaToRegionForRegisterCQ()
public void testDeltaToRegionForRegisterCQIR()
public void testDeltaToRegionForRegisterCQIRThroughPool()
public void testDeltaToRegionForRegisterCQFailover()
public void testDeltaToRegionForRegisterCQIRFaliover()
public void testDeltaToRegionForRegisterCQIRFromPoolFaliover()
public static void registerCq(java.lang.String name,
java.lang.String Cquery,
java.lang.Boolean cqWithIR)
public static void registerCqThroughPool(java.lang.String name,
java.lang.String Cquery,
java.lang.Boolean cqWithIR)
public static void validationOnServer()
throws java.lang.Exception
java.lang.Exceptionpublic static void validationOnServerForCqRegistrationFromPool()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createServerCache()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(java.lang.String host,
java.lang.Integer port)
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCacheWithNoRegion(java.lang.String host,
java.lang.Integer port)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createClientCache2(java.lang.String host1,
java.lang.String host2,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Integer createClientCache3(java.lang.String host1,
java.lang.String host2,
java.lang.Integer port1,
java.lang.Integer port2)
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void closeCache()
public static com.gemstone.gemfire.internal.cache.tier.sockets.CacheClientProxy getClientProxy()
public static void stopCacheServer()
public void intialSetUp()
public void intialSetUpClientWithNoRegion()
public void tearDownforSimpleCase()
public void intialSetUpForFailOver()
public void intialSetUpNoRegiononClientForFailOver()
public void validationForFailOver()
public void validationForCQFiredFromPoolFailOver()
public void tearDownForFailOver()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.