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(java.lang.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(java.lang.String host,
java.lang.Integer port1) |
static void |
createClientCache(java.lang.String host,
java.lang.Integer port1) |
static java.lang.Integer |
createServerCache(java.lang.Integer maxThreads) |
static java.lang.Integer |
createServerCacheOne(java.lang.Integer maxThreads)
This method creates the server cache
|
static java.lang.Integer |
createServerCacheTwo(java.lang.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 java.lang.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(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic static void createClientCache(java.lang.String host,
java.lang.Integer port1)
throws java.lang.Exception
java.lang.Exceptionprotected int getMaxThreads()
public static java.lang.Integer createServerCache(java.lang.Integer maxThreads)
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 void verifyInstantiators(int numOfInstantiators)
public static void registerTestObject1()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject2()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject3()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject4()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject5()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject6()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject7()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject8()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject9()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject10()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject11()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject12()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject13()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject14()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject15()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject16()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject17()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject18()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject19()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerTestObject20()
throws java.lang.Exception
java.lang.Exceptionpublic static void stopServer()
public static void startServer()
public void testServerUpFirstClientLater()
throws java.lang.Exception
java.lang.Exceptionpublic void testInstantiatorsWith2ClientsN2Servers()
throws java.lang.Exception
java.lang.Exceptionpublic void _testInstantiatorsWithServerKill()
throws java.lang.Exception
java.lang.Exceptionpublic void _testInstantiators()
throws java.lang.Exception
java.lang.Exceptionpublic void _testInstantiatorsWithServerKillAndReInvoked()
throws java.lang.Exception
java.lang.Exceptionpublic void _testInstantiatorCount()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache_EventId(java.lang.String host,
java.lang.Integer port1)
throws java.lang.Exception
java.lang.Exceptionpublic void _testInstantiatorsEventIdVerificationClientsAndServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testLazyRegistrationOfInstantiators()
throws java.lang.Exception
java.lang.Exceptionpublic static void assertTestObject20Loaded()
public static void assertTestObject20NotLoaded()
public static java.lang.Boolean verifyResult()
public static java.lang.Integer createServerCacheTwo(java.lang.Integer maxThreads)
throws java.lang.Exception
maxThreads - java.lang.Exceptionpublic static java.lang.Integer createServerCacheOne(java.lang.Integer maxThreads)
throws java.lang.Exception
maxThreads - java.lang.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.