public class HARegionDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
HARegionDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache()
close the cache
|
static void |
createRegion()
create a client with 2 regions sharing a common writer
|
static void |
createRegionQueue() |
static void |
destroy()
destroy key-1
|
static void |
destroyRegion()
Destroy the region
|
static void |
getNull()
do a get on region1
|
static void |
getValue1()
do a get on region1
|
static void |
getValue2()
do a get on region1
|
static void |
putValue1()
do three puts on key-1
|
static void |
putValue2()
do three puts on key-1
|
void |
setUp()
get the VM's
|
void |
tearDown2()
close the cache in tearDown
|
void |
testGII()
1) Create mirrored HARegion region1 in VM1 2) do a put in VM1 3) get teh
value in VM1 to assert put has happened successfully 4) Create mirrored
HARegion region1 in VM2 5) do a get in VM2 to verify that value was got
through GII 6) do a put in VM2 7) assert put in VM2 was successful
|
void |
testLocalDestroy()
1) Create mirrored HARegion region1 in VM1 and VM2 2) do a put in VM1 3)
assert that the put has not propagated from VM1 to VM2 4) do a put in VM2
5) assert that the value in VM1 has not changed to due to put in VM2 6)
assert respective puts the VMs were successful by doing a get 7)
localDestroy key in VM1 8) assert key has been destroyed in VM1 9) assert
key has not been destroyed in VM2
|
void |
testLocalDestroyRegion()
1) Create mirrored HARegion region1 in VM1 2) do a put in VM1 3) get teh
value in VM1 to assert put has happened successfully 4) Create mirrored
HARegion region1 in VM2 5) do a get in VM2 to verify that value was got
through GII 6) do a put in VM2 7) assert put in VM2 was successful
|
void |
testLocalPut()
1) Create mirrored HARegion region1 in VM1 and VM2 2) do a put in VM1 3)
assert that the put has not propagated from VM1 to VM2 4) do a put in VM2
5) assert that the value in VM1 has not changed to due to put in VM2 6)
assert put in VM2 was successful by doing a get
|
void |
testQRM()
1) Create mirrored HARegion region1 in VM1 2) do a put in VM1 3) get teh
value in VM1 to assert put has happened successfully 4) Create mirrored
HARegion region1 in VM2 5) do a get in VM2 to verify that value was got
through GII 6) do a put in VM2 7) assert put in VM2 was successful
|
static void |
verifyAddingDispatchMesgs() |
static void |
verifyDispatchedMessagesRemoved() |
static void |
verifyRegionNotDestroyed()
Verify Region exists
|
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 HARegionDUnitTest(String name)
public void setUp()
throws Exception
setUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic void testLocalPut()
public void testLocalDestroy()
public void testGII()
public void testLocalDestroyRegion()
public static void destroyRegion()
public static void verifyRegionNotDestroyed()
public void testQRM()
public static void createRegion()
throws Exception
Exceptionpublic static void verifyAddingDispatchMesgs()
public static void verifyDispatchedMessagesRemoved()
public static void closeCache()
public static void putValue1()
public static void putValue2()
public static void getValue1()
public static void getNull()
public static void getValue2()
public static void destroy()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.