public abstract class AbstractLauncherDUnitTestCase extends CacheTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static int |
INTERVAL_MILLISECONDS |
protected File |
pidFile |
protected ServerSocket |
socket |
protected File |
statusFile |
protected File |
statusRequestFile |
protected File |
stopRequestFile |
protected static int |
TIMEOUT_MILLISECONDS |
cachelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
AbstractLauncherDUnitTestCase(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createCollectionListener(String name,
String header,
List<String> lines) |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createExpectedListener(String name,
String header,
String expected,
AtomicBoolean atomic) |
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener |
createLoggingListener(String name,
String header) |
protected void |
delete(File file) |
protected static int |
getPid() |
protected boolean |
isPidAlive(int pid) |
protected int |
readPid(File pidFile) |
void |
setUp()
Sets up the test (noop).
|
protected abstract void |
subSetUp()
To be overridden in subclass.
|
protected abstract void |
subTearDown()
To be overridden in subclass.
|
void |
tearDown2()
Tears down the test.
|
protected void |
waitForFileToDelete(File file) |
protected void |
waitForFileToDelete(File file,
boolean throwOnTimeout) |
protected void |
waitForFileToExist(File file) |
protected void |
waitForFileToExist(File file,
boolean throwOnTimeout) |
protected void |
waitForPidToStop(int pid) |
protected void |
waitForPidToStop(int pid,
boolean throwOnTimeout) |
protected void |
writeGemfireProperties(Properties gemfireProperties,
File gemfirePropertiesFile) |
protected void |
writePid(File pidFile,
int pid) |
addExceptionTag1, basicGetCache, beginCacheXml, cleanDiskDirs, closeAllCache, closeCache, createLonerCache, createMcastCache, createMcastCache, createRegion, createRegion, createRootRegion, createRootRegion, disconnectFromDS, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getClientCache, getDiskDirs, getGemfireCache, getInternalRegionArguments, getRootRegion, getRootRegion, hasCache, remoteTearDown, removeExceptionTag1, sendSerialMessageToAll, sendUnorderedMessageToAlladdExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, 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 int TIMEOUT_MILLISECONDS
protected static final int INTERVAL_MILLISECONDS
protected transient volatile ServerSocket socket
protected transient volatile File pidFile
protected transient volatile File stopRequestFile
protected transient volatile File statusRequestFile
protected transient volatile File statusFile
public AbstractLauncherDUnitTestCase(String name)
public final void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic final void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class CacheTestCaseExceptionprotected abstract void subSetUp()
throws Exception
Exceptionprotected abstract void subTearDown()
throws Exception
Exceptionprotected void delete(File file)
protected boolean isPidAlive(int pid)
protected void waitForPidToStop(int pid,
boolean throwOnTimeout)
protected void waitForPidToStop(int pid)
protected void waitForFileToDelete(File file, boolean throwOnTimeout)
protected void waitForFileToDelete(File file)
protected static int getPid()
throws com.gemstone.gemfire.internal.process.PidUnavailableException
com.gemstone.gemfire.internal.process.PidUnavailableExceptionprotected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createLoggingListener(String name, String header)
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createCollectionListener(String name, String header, List<String> lines)
protected com.gemstone.gemfire.internal.process.ProcessStreamReader.InputListener createExpectedListener(String name, String header, String expected, AtomicBoolean atomic)
protected void writeGemfireProperties(Properties gemfireProperties, File gemfirePropertiesFile) throws IOException
IOExceptionprotected int readPid(File pidFile) throws IOException
IOExceptionprotected void writePid(File pidFile, int pid) throws IOException
IOExceptionprotected void waitForFileToExist(File file, boolean throwOnTimeout)
protected void waitForFileToExist(File file)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.