public class RemoteBlockingQueueTest extends DistributedTestCase
RemoteBlockingQueue. Note that most
methods throw Exception because if anything goes
wrong, the test should fail.DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
RemoteBlockingQueueTest(String name)
Creates a new
RemoteBlockingQueueTest with the given
name. |
| Modifier and Type | Method and Description |
|---|---|
protected RemoteBlockingQueue |
getQueue()
Returns the
RemoteBlockingQueue used by this test. |
void |
setUp()
Initializes this test by binding an instance of
RemoteBlockingQueueImpl into the RMI registry hosted
in Hydra's master controller VM. |
void |
tearDown2()
Cleans up after this test by unbinding the instance of
RemoteBlockingQueue that was initialized in setUp(). |
void |
testDistributedPut()
Tests that an element
put by one VM can be seen by
another VM. |
void |
testProducersConsumer()
Tests that elements added multiple producers are consumed in the
same order.
|
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 RemoteBlockingQueueTest(String name)
RemoteBlockingQueueTest with the given
name.public void setUp()
throws Exception
RemoteBlockingQueueImpl into the RMI registry hosted
in Hydra's master controller VM.setUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
RemoteBlockingQueue that was initialized in setUp().tearDown2 in class DistributedTestCaseExceptionprotected RemoteBlockingQueue getQueue() throws Exception
RemoteBlockingQueue used by this test.Exceptionpublic void testDistributedPut()
throws Exception
put by one VM can be seen by
another VM.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.