public class DataSerializerPropogationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<Boolean> |
allowNonLocalTL |
protected static com.gemstone.gemfire.internal.cache.EventID |
eventId |
static boolean |
successfullyLoadedTestDataSerializer |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
DataSerializerPropogationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
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 |
registerDSObject1() |
static void |
registerDSObject10() |
static void |
registerDSObject11() |
static void |
registerDSObject12() |
static void |
registerDSObject13() |
static void |
registerDSObject2() |
static void |
registerDSObject3() |
static void |
registerDSObject4() |
static void |
registerDSObject5() |
static void |
registerDSObject6() |
static void |
registerDSObject7() |
static void |
registerDSObject8() |
static void |
registerDSObject9() |
static void |
registerDSObjectLocalOnly() |
static void |
registerTestDataSerializer() |
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 |
testDataSerializerCount() |
void |
testDataSerializers() |
void |
testDataSerializersEventIdVerificationClientsAndServers()
Test's same eventId being same for the dataserializers at all clients &
servers
|
void |
testDataSerializersWith2ClientsN2Servers() |
void |
testDataSerializersWithServerKill() |
void |
testDataSerializersWithServerKillAndReInvoked() |
void |
testLazyLoadingOfDataSerializersWith2ClientsN2Servers() |
void |
testLocalOnlyDS() |
void |
testServerUpFirstClientLater()
In this test the server is up first.2 DataSerializers are registered on it.
|
static void |
verifyDataSerializerClassNamesMap(Integer expected) |
static void |
verifyDataSerializerIDMap(Integer expected) |
static void |
verifyDataSerializers(int numOfDataSerializers) |
static void |
verifyDataSerializers(int numOfDataSerializers,
boolean allowNonLocal) |
static void |
verifyDataSerializerSupportedClassNamesMap(Integer expected) |
static void |
verifyLoadedDataSerializers(Integer expected) |
static Boolean |
verifyResult() |
static void |
verifyTestDataSerializerLoaded() |
static void |
verifyTestDataSerializerNotLoaded() |
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 successfullyLoadedTestDataSerializer
public static final ThreadLocal<Boolean> allowNonLocalTL
public DataSerializerPropogationDUnitTest(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 verifyDataSerializers(int numOfDataSerializers)
public static void verifyDataSerializers(int numOfDataSerializers,
boolean allowNonLocal)
public static void registerDSObjectLocalOnly()
throws Exception
Exceptionpublic static void registerTestDataSerializer()
throws Exception
Exceptionpublic static void stopServer()
public static void startServer()
public void testServerUpFirstClientLater()
throws Exception
Exceptionpublic void testDataSerializersWith2ClientsN2Servers()
throws Exception
Exceptionpublic void testDataSerializersWithServerKill()
throws Exception
Exceptionpublic void testDataSerializersWithServerKillAndReInvoked()
throws Exception
Exceptionpublic void testDataSerializersEventIdVerificationClientsAndServers()
throws Exception
Exceptionpublic void testLazyLoadingOfDataSerializersWith2ClientsN2Servers()
throws Exception
Exceptionpublic static void verifyTestDataSerializerNotLoaded()
public static void verifyTestDataSerializerLoaded()
public static void verifyLoadedDataSerializers(Integer expected)
public static void verifyDataSerializerClassNamesMap(Integer expected)
public static void verifyDataSerializerIDMap(Integer expected)
public static void verifyDataSerializerSupportedClassNamesMap(Integer expected)
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.