public class SystemFailureDUnitTest extends DistributedCacheTestCase
VirtualMachineError| Modifier and Type | Class and Description |
|---|---|
static class |
SystemFailureDUnitTest.GenericListener
A class that provides default implementations for the methods of
several listener types.
|
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static AtomicInteger |
listenerCount |
protected static ArrayList |
peskyMemory |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
SystemFailureDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
_testError()
Create some sort of horrible failure that is not
a VirtualMachineError.
|
void |
_testInternalError() |
void |
_testListener()
Verify that listener gets called, and exactly once.
|
void |
_testMemoryMonitor() |
void |
_testOutOfMemory() |
void |
_testPersistentOutOfMemory() |
void |
_testStackOverflow() |
void |
_testUnknownError() |
protected static void |
createEntry(String name)
Sets a listener based on the test, and then (attempts to) create
an entry in this test's region with the given name
|
protected void |
doCreateEntry(String name) |
protected static Integer |
getListenerCount() |
protected static void |
message(String s) |
protected static void |
setListener1() |
protected static void |
setListener2() |
void |
testNullFailure() |
protected static Boolean |
verifyConnected() |
protected static Boolean |
verifyDisconnected() |
forEachVMInvoke, getDistributionManager, getRootRegion, remoteAssertEntryValue, remoteCreateRegion, remoteCreateRegion, remoteDefineEntry, remoteDefineEntry, remoteDestroy, remoteInvalidate, remotePut, remotePutDistributed, remoteReplace, setUp, setUp, tearDown2addExpectedException, 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 final AtomicInteger listenerCount
protected static volatile ArrayList peskyMemory
public SystemFailureDUnitTest(String name)
public void testNullFailure()
public void _testStackOverflow()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionStackOverflowErrorpublic void _testOutOfMemory()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionOutOfMemoryErrorpublic void _testPersistentOutOfMemory()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionOutOfMemoryErrorpublic void _testMemoryMonitor()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionOutOfMemoryErrorpublic void _testInternalError()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionInternalErrorpublic void _testUnknownError()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionUnknownErrorpublic void _testError()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionprotected static Integer getListenerCount()
protected static void setListener1()
protected static void setListener2()
public void _testListener()
throws com.gemstone.gemfire.cache.CacheException,
InterruptedException
com.gemstone.gemfire.cache.CacheExceptionInterruptedExceptionprotected static Boolean verifyConnected()
protected static Boolean verifyDisconnected()
protected static void message(String s)
protected void doCreateEntry(String name)
protected static void createEntry(String name) throws com.gemstone.gemfire.cache.CacheException
name - the test we are runningcom.gemstone.gemfire.cache.CacheExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.