public class InterestListFailoverDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
InterestListFailoverDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
_put(String v) |
static void |
_validateEntries(String v) |
void |
closeAll() |
static void |
createEntries() |
void |
createServersAndClients(int redundancyLevel) |
void |
doTestInterestListRecovery(int redundancyLevel) |
static void |
putA() |
static void |
putB() |
static Integer |
registerInterestList() |
void |
setUp()
Sets up the test (noop).
|
static void |
stopServer() |
void |
tearDown2()
Tears down the test.
|
void |
testInterestListRecoveryHA()
one server two clients
create Entries in all vms
c1 : register (k1,k2,k3,k4,k5)
c2 : put (k1 -> vm2-key-1) and (k6 -> vm2-key-6)
c1 : validate (r.getEntry("key-1").getValue() == "vm2-key-1")
(r.getEntry("key-6").getValue() == "key-6") // as it is not registered
s1 : stop server
s1 : start server
c2 : put (k1 -> vm2-key-1) and (k6 -> vm2-key-6)
c1 : validate (r.getEntry("key-1").getValue() == "vm2-key-1")
(r.getEntry("key-6").getValue() == "key-6") // as it is not registered
|
void |
testInterestListRecoveryNonHA() |
static void |
validateEntriesA() |
static void |
validateEntriesB() |
static void |
verifyEntries() |
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 InterestListFailoverDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void createServersAndClients(int redundancyLevel)
public void testInterestListRecoveryHA()
public void testInterestListRecoveryNonHA()
public void doTestInterestListRecovery(int redundancyLevel)
public static void createEntries()
public static void verifyEntries()
public static Integer registerInterestList()
public static void stopServer()
public static void _put(String v)
public static void putA()
public static void putB()
public static void validateEntriesA()
public static void validateEntriesB()
public static void _validateEntries(String v)
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic void closeAll()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.