public class AutoConnectionSourceDUnitTest extends LocatorTestBase
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoConnectionSourceDUnitTest.MyListener |
LocatorTestBase.MyLocatorCallbackDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object |
BRIDGE_LISTENER |
CACHE_KEY, CALLBACK_KEY, LOCATOR_KEY, POOL_NAME, REGION_NAME, remoteObjectslogPerTest, reconnect, system, testName| Constructor and Description |
|---|
AutoConnectionSourceDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBridgeListener(VM vm) |
protected void |
checkEndpoints(VM vm,
int[] expectedPorts)
Assert that there is one endpoint with the given host in port
on the client vm.
|
protected java.lang.Object |
getInVM(VM vm,
java.io.Serializable key) |
protected java.lang.Object |
getInVM(VM vm,
java.lang.String regionName,
java.io.Serializable key) |
protected void |
putAndWaitForSuccess(VM vm,
java.lang.String regionName,
java.io.Serializable key,
java.io.Serializable value) |
protected void |
putInVM(VM vm,
java.io.Serializable key,
java.io.Serializable value) |
protected void |
putInVM(VM vm,
java.lang.String regionName,
java.io.Serializable key,
java.io.Serializable value) |
protected void |
resetBridgeListener(VM vm) |
void |
setUp()
Sets up the test (noop).
|
void |
testBridgeMembershipListener() |
void |
testDiscoverBridgeServers() |
void |
testDynamicallyFindBridgeServer() |
void |
testDynamicallyFindLocators() |
void |
testEmbeddedLocator() |
void |
testNoBridgeServer() |
void |
testNoLocators() |
void |
testServerGroups() |
void |
testTwoServersInSameVM() |
addBridgeServerInVM, getLocatorString, getLocatorString, startBridgeClientInVM, startBridgeClientInVM, startBridgeClientInVM, startBridgeServerInVM, startBridgeServerInVM, startBridgeServerInVM, startBridgeServerWithEmbeddedLocator, startLocatorInVM, stopBridgeMemberVM, stopLocatorInVM, 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, toStringpublic AutoConnectionSourceDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testDiscoverBridgeServers()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoLocators()
public void testNoBridgeServer()
public void testDynamicallyFindBridgeServer()
throws java.lang.Exception
java.lang.Exceptionpublic void testDynamicallyFindLocators()
throws java.lang.Exception
java.lang.Exceptionpublic void testEmbeddedLocator()
throws java.lang.Exception
java.lang.Exceptionpublic void testServerGroups()
throws java.lang.Exception
java.lang.Exceptionpublic void testTwoServersInSameVM()
public void testBridgeMembershipListener()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object getInVM(VM vm, java.io.Serializable key)
protected java.lang.Object getInVM(VM vm, java.lang.String regionName, java.io.Serializable key)
protected void putAndWaitForSuccess(VM vm, java.lang.String regionName, java.io.Serializable key, java.io.Serializable value) throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void putInVM(VM vm, java.io.Serializable key, java.io.Serializable value)
protected void putInVM(VM vm, java.lang.String regionName, java.io.Serializable key, java.io.Serializable value)
protected void checkEndpoints(VM vm, int[] expectedPorts)
vm - - the vm the client is running inexpectedPort - - The server port we expect the client to be connected to.protected void addBridgeListener(VM vm)
protected void resetBridgeListener(VM vm)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.