public class UnregisterInterestDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
UnregisterInterestDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
_testUnregisterInterestFilters() |
static void |
checkAllKeys(java.lang.Integer value,
java.lang.Integer valueInv) |
static void |
checkFilters(java.lang.Integer value,
java.lang.Integer valueInv) |
static void |
checkKeyList(java.lang.Integer value,
java.lang.Integer valueInv) |
static void |
checkPatterns(java.lang.Integer value,
java.lang.Integer valueInv) |
static void |
checkRIArtifacts(java.lang.Integer interestType,
java.lang.Integer value,
java.lang.Integer valueInv) |
static void |
closeCache() |
static java.lang.Integer |
createCacheAndStartServer() |
static void |
createClientCache(Host host,
java.lang.Integer port) |
static void |
registerInterest(java.lang.Integer interestType,
java.lang.Boolean receiveValues,
java.lang.String[] values) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testUnregisterInterestAllKeys()
The test starts two clients who register interest in "ALL_KEYS" but close
without unregistering the same.
|
void |
testUnregisterInterestKeys()
The test starts two clients who register interest in a list keys but close
without unregistering the same.
|
void |
testUnregisterInterestKeysInvForOneClientDoesNotAffectOtherClient()
The test starts two clients who register interest in a common list of keys,
with the option of receiving updates as invalidates.
|
void |
testUnregisterInterestPatterns()
The test starts two clients who register interest with regular expression
"[a-z]*[0-9]" but close without unregistering the same.
|
void |
testUnregisterInterestRegexInvForOneClientDoesNotAffectOtherClient()
The test starts two clients who register interest with the same regular
expression, with the option of receiving updates as invalidates.
|
static void |
timedWaitForInvalidates(java.lang.Integer invalidates) |
static void |
unregisterInterest(java.lang.String[] keys) |
static void |
unregisterInterestRegex(java.lang.String[] patterns) |
static void |
updateKeys(java.lang.String[] keys) |
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 UnregisterInterestDUnitTest(java.lang.String name)
name - public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.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 void testUnregisterInterestAllKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnregisterInterestKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnregisterInterestPatterns()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnregisterInterestKeysInvForOneClientDoesNotAffectOtherClient()
throws java.lang.Exception
java.lang.Exceptionpublic void testUnregisterInterestRegexInvForOneClientDoesNotAffectOtherClient()
throws java.lang.Exception
java.lang.Exceptionpublic void _testUnregisterInterestFilters()
throws java.lang.Exception
java.lang.Exceptionpublic static void checkRIArtifacts(java.lang.Integer interestType,
java.lang.Integer value,
java.lang.Integer valueInv)
public static void checkAllKeys(java.lang.Integer value,
java.lang.Integer valueInv)
public static void checkKeyList(java.lang.Integer value,
java.lang.Integer valueInv)
public static void checkPatterns(java.lang.Integer value,
java.lang.Integer valueInv)
public static void checkFilters(java.lang.Integer value,
java.lang.Integer valueInv)
public static void registerInterest(java.lang.Integer interestType,
java.lang.Boolean receiveValues,
java.lang.String[] values)
public static void unregisterInterest(java.lang.String[] keys)
public static void unregisterInterestRegex(java.lang.String[] patterns)
public static void updateKeys(java.lang.String[] keys)
public static void timedWaitForInvalidates(java.lang.Integer invalidates)
public static java.lang.Integer createCacheAndStartServer()
throws java.lang.Exception
java.lang.Exceptionpublic static void createClientCache(Host host, java.lang.Integer port) throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.