public class GatewayDUnitTest extends CacheTestCase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GatewayDUnitTest.ControlListener |
protected static class |
GatewayDUnitTest.TxControlListener |
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static GatewayDUnitTest.ControlListener |
dsRegionListener |
protected static com.gemstone.gemfire.distributed.internal.InternalLocator |
locator |
protected static int |
TYPE_CREATE |
protected static int |
TYPE_DESTROY |
protected static int |
TYPE_INVALIDATE |
protected static int |
TYPE_UPDATE |
protected static GatewayDUnitTest.ControlListener |
wanRegionListener |
protected static GatewayDUnitTest.TxControlListener |
wanTxListener |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
GatewayDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected com.gemstone.gemfire.cache.util.Gateway |
addGateway(com.gemstone.gemfire.cache.util.GatewayHub hub,
String gatewayName) |
protected static void |
assertTxWanListener(Object key,
Object val,
int type) |
protected static void |
assertWanListener(Object key,
int type) |
protected static void |
assertWanListener(Object key,
Object val,
Object arg,
int type) |
protected static void |
assertWanListenerNow(Object key,
Object val,
Object arg,
int type) |
protected static void |
clearListeners() |
static void |
destroyWanQueues() |
protected com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes()
Returns region attributes for a
LOCAL region |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testGateway()
This calls many sub-tests since setUp and tearDown are so complex.
|
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, toStringprotected static final GatewayDUnitTest.TxControlListener wanTxListener
protected static final GatewayDUnitTest.ControlListener wanRegionListener
protected static final GatewayDUnitTest.ControlListener dsRegionListener
protected static com.gemstone.gemfire.distributed.internal.InternalLocator locator
protected static final int TYPE_CREATE
protected static final int TYPE_UPDATE
protected static final int TYPE_INVALIDATE
protected static final int TYPE_DESTROY
public GatewayDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionprotected com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes()
LOCAL regionpublic static void destroyWanQueues()
public void testGateway()
throws Throwable
Throwableprotected static void clearListeners()
protected static void assertWanListener(Object key, int type)
protected static void assertWanListener(Object key, Object val, Object arg, int type)
protected static void assertWanListenerNow(Object key, Object val, Object arg, int type)
protected com.gemstone.gemfire.cache.util.Gateway addGateway(com.gemstone.gemfire.cache.util.GatewayHub hub,
String gatewayName)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.