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(java.lang.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(java.lang.String name)
RemoteBlockingQueueTest with the given
name.public void setUp()
throws java.lang.Exception
RemoteBlockingQueueImpl into the RMI registry hosted
in Hydra's master controller VM.setUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
RemoteBlockingQueue that was initialized in setUp().tearDown2 in class DistributedTestCasejava.lang.Exceptionprotected RemoteBlockingQueue getQueue() throws java.lang.Exception
RemoteBlockingQueue used by this test.java.lang.Exceptionpublic void testDistributedPut()
throws java.lang.Exception
put by one VM can be seen by
another VM.java.lang.Exceptionpublic void testProducersConsumer()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.