public class WanBackwardCompatibleDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.cache.Cache |
cache |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
WanBackwardCompatibleDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addExceptions() |
static void |
closeCache()
close the cache
|
static void |
createImpl() |
static Object |
createServerCache(String site,
String name,
Integer ePort1,
Integer ePort2,
String host)
Creates the server cache, and configure wan
|
static void |
doGet(Integer n)
perform get operation to verify total entry count recieved
|
static void |
doPuts(Integer min,
Integer max)
perform put operation
|
protected com.gemstone.gemfire.cache.AttributesFactory |
getServerCacheAttributesFactory() |
static void |
removeExceptions() |
static void |
setHandshakeVersionForTesting(Short val) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
close the clients and the servers
|
void |
testGatewayConnectivityWithDifferentVersionedWan()
This test does the following :
1)Create two wan site with different version 2)Perform put operation on each site 3)Verifies events recieved on each wan site |
void |
testGatewayConnectivityWithOneUnsupportedVersionedWan()
This test does the following :
1)Create two wan site one is version and other is unversion 2)Perform put operation on each site 3)Verifies events recieved on each wan site |
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 WanBackwardCompatibleDUnitTest(String name)
public static void createImpl()
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testGatewayConnectivityWithDifferentVersionedWan()
public void testGatewayConnectivityWithOneUnsupportedVersionedWan()
public static Object createServerCache(String site, String name, Integer ePort1, Integer ePort2, String host) throws Exception
site - - used to configure gateway endpointname - - used to generate nameePort1 - -
GatewayHub portePort2 - -
other GatewayHub portException - -
thrown if any problem occurs in setting up the serverprotected com.gemstone.gemfire.cache.AttributesFactory getServerCacheAttributesFactory()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static void doPuts(Integer min, Integer max) throws Exception
Exceptionpublic static void doGet(Integer n) throws Exception
Exceptionpublic static void setHandshakeVersionForTesting(Short val) throws Exception
Exceptionpublic static void removeExceptions()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.