public class WanDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
WanDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
close the cache
|
static void |
createClientCache(String host,
Integer mcast_port,
Integer server_port)
creates the client with retry 1
|
static void |
createImpl() |
static Object |
createServerCache1(Object end_port)
create server 1
|
static void |
createServerCache2(Integer mcast_port,
Integer server_port)
create server 2 with writer
|
static Object |
createServerCache3() |
static void |
doPutsOnClientExpectingException()
does a put on the client expecting an exception
|
static void |
doPutsOnClientNotExpectingException()
does a put on the client not expecting an exception
|
protected com.gemstone.gemfire.cache.AttributesFactory |
getServerCacheAttributesFactory() |
void |
setUp()
Sets up the test (noop).
|
static void |
setWriter() |
void |
tearDown2()
close the clients and teh servers
|
void |
testOneServerNotResponding()
tests what happens if a put is not succesful due the put being
blocked at the secondary server
|
void |
testServerOverWanNotResponding() |
static void |
unsetForceLocalPrimary() |
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 WanDUnitTest(String name)
public static void createImpl()
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testOneServerNotResponding()
public void testServerOverWanNotResponding()
public static void createClientCache(String host, Integer mcast_port, Integer server_port) throws Exception
Exceptionpublic static Object createServerCache1(Object end_port) throws Exception
Exceptionpublic static void createServerCache2(Integer mcast_port, Integer server_port) throws Exception
Exceptionprotected com.gemstone.gemfire.cache.AttributesFactory getServerCacheAttributesFactory()
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static void unsetForceLocalPrimary()
public static void closeCache()
public static void setWriter()
public static void doPutsOnClientExpectingException()
throws Exception
ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.