public class InstantiatorPropogationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.internal.cache.EventID |
eventId |
static boolean |
testObject20Loaded |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
InstantiatorPropogationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
_testInstantiatorCount()
In this test there are 2 clients connected to 1 server and 1 client
connected to the other server.Registered one instantiator on one
client(client1).
|
void |
_testInstantiators()
2 clients n 2 servers.Registered instantiators on both client n server to
check if propogation of instantiators to n fro (from client n server) is
taking place.Diff from the previous test in the case that server is not
stopped.So registering an instantiator on server should propogate that to
client as well.
|
void |
_testInstantiatorsEventIdVerificationClientsAndServers()
Test's same eventId being same for the Instantitors at all clients &
servers
|
void |
_testInstantiatorsWithServerKill()
First register an instantiator on client1.
|
void |
_testInstantiatorsWithServerKillAndReInvoked()
Test's Number of Instantiators at all clients & servers with one Server
being stopped and then restarted
|
static void |
assertTestObject20Loaded() |
static void |
assertTestObject20NotLoaded() |
static void |
closeCache() |
static void |
createClientCache_EventId(String host,
Integer port1) |
static void |
createClientCache(String host,
Integer port1) |
static Integer |
createServerCache(Integer maxThreads) |
static Integer |
createServerCacheOne(Integer maxThreads)
This method creates the server cache
|
static Integer |
createServerCacheTwo(Integer maxThreads)
This method creates the server cache
|
protected int |
getMaxThreads() |
static void |
registerTestObject1() |
static void |
registerTestObject10() |
static void |
registerTestObject11() |
static void |
registerTestObject12() |
static void |
registerTestObject13() |
static void |
registerTestObject14() |
static void |
registerTestObject15() |
static void |
registerTestObject16() |
static void |
registerTestObject17() |
static void |
registerTestObject18() |
static void |
registerTestObject19() |
static void |
registerTestObject2() |
static void |
registerTestObject20() |
static void |
registerTestObject3() |
static void |
registerTestObject4() |
static void |
registerTestObject5() |
static void |
registerTestObject6() |
static void |
registerTestObject7() |
static void |
registerTestObject8() |
static void |
registerTestObject9() |
static void |
setBridgeObserver1() |
static void |
setBridgeObserver2() |
static void |
setEventId(com.gemstone.gemfire.internal.cache.EventID eventID)
sets the EventId value in the VM
|
void |
setUp()
Sets up the test (noop).
|
static void |
startServer() |
static void |
stopServer() |
void |
tearDown2()
Tears down the test.
|
void |
testInstantiatorsWith2ClientsN2Servers()
In this test there are 2 clients and 2 servers.Registered one instantiator
on one client.
|
void |
testLazyRegistrationOfInstantiators() |
void |
testServerUpFirstClientLater()
In this test the server is up first.2 Instantiators are registered on it.
|
static void |
verifyInstantiators(int numOfInstantiators) |
static Boolean |
verifyResult() |
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, toStringprotected static com.gemstone.gemfire.internal.cache.EventID eventId
public static boolean testObject20Loaded
public InstantiatorPropogationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic static void createClientCache(String host, Integer port1) throws Exception
Exceptionprotected int getMaxThreads()
public static Integer createServerCache(Integer maxThreads) 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 void verifyInstantiators(int numOfInstantiators)
public static void stopServer()
public static void startServer()
public void testServerUpFirstClientLater()
throws Exception
Exceptionpublic void testInstantiatorsWith2ClientsN2Servers()
throws Exception
Exceptionpublic void _testInstantiatorsWithServerKill()
throws Exception
Exceptionpublic void _testInstantiators()
throws Exception
Exceptionpublic void _testInstantiatorsWithServerKillAndReInvoked()
throws Exception
Exceptionpublic void _testInstantiatorCount()
throws Exception
Exceptionpublic static void createClientCache_EventId(String host, Integer port1) throws Exception
Exceptionpublic void _testInstantiatorsEventIdVerificationClientsAndServers()
throws Exception
Exceptionpublic void testLazyRegistrationOfInstantiators()
throws Exception
Exceptionpublic static void assertTestObject20Loaded()
public static void assertTestObject20NotLoaded()
public static Boolean verifyResult()
public static Integer createServerCacheTwo(Integer maxThreads) throws Exception
maxThreads - Exceptionpublic static Integer createServerCacheOne(Integer maxThreads) throws Exception
maxThreads - Exceptionpublic static void setBridgeObserver1()
public static void setEventId(com.gemstone.gemfire.internal.cache.EventID eventID)
eventID - public static void setBridgeObserver2()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.