public class NewRegionAttributesDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2logPerTest, reconnect, system, testName| Constructor and Description |
|---|
NewRegionAttributesDUnitTest(String name)
Creates a test instance with the given name
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAttributes()
This methods verifies on both test VMs that enableWan, setPublisher,
enableConflation and enableAysncConflation are set properly to true for the
test-region
|
static void |
closeCache()
Closes the cache instance created and disconnects from the distributed
system.
|
static void |
createServerCache(Boolean enableWan,
Boolean setPublisher,
Boolean enableConflation,
Boolean enableAsyncConflation)
Creates the cache and the region on the test VM with given parameters
|
static void |
doDestroy()
Performs DESTROY operations on the test-region and fails if any Exception
occurs during the DESTROYs
|
static void |
doInvalidates()
Performs INVALIDATES operations on the test-region and fails if any
Exception occurs during the INVALIDATESs
|
static void |
doPuts()
Performs PUT operations on the test-region and fails if any Exception
occurs during the PUTs
|
static Object |
getEntryCount()
Gets the total number of entries in the test region
|
static void |
getInterestForRegion()
This method invokes all the getter API's for interest-list on the
test-region and verifies that
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client. |
static void |
registerInterest()
This method invokes all the registerInterest related API's for the
test-region and verifies that
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client. |
void |
setUp()
Creates the server cache on test-VMs
|
void |
tearDown2()
Closes the cache on test VMs
|
void |
testEntryOperationsWithNewAttributesEnabled()
This test configures a region on test VMs with newly added attributes
enabled and verifies that basic entry operations are properly working.
|
void |
testRegisterInterestUseCases()
This test tries to call register/unregister interest related API's on the
test-region (which does not have any bridge-client or bridge-server) and
verifies that
UnsupportedOperationException occurs as expected |
static void |
unregisterInterest()
This method invokes all the unregisterInterest related API's for the
test-region and verifies that
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client. |
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 NewRegionAttributesDUnitTest(String name)
name - -
name of test instancepublic void setUp()
throws Exception
setUp in class DistributedTestCaseException - thrown if any problem occurs in set-uppublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseException - thrown if any problem occurs while closing the cachepublic static void createServerCache(Boolean enableWan, Boolean setPublisher, Boolean enableConflation, Boolean enableAsyncConflation) throws Exception
enableWan - boolean to make test-region wan-enabledsetPublisher - boolean to make test-region as publisherenableConflation - boolean to enable conflation for test-regionenableAsyncConflation - boolean to enable async conflation on test-regionException - thrown if any problem occurs while creating cache or test-regionAttributesFactory.setEnableWAN(boolean),
AttributesFactory.setPublisher(boolean),
AttributesFactory.setEnableConflation(boolean),
AttributesFactory.setEnableAsyncConflation(boolean)public static void closeCache()
public void testEntryOperationsWithNewAttributesEnabled()
AttributesFactory.setEnableWAN(boolean),
AttributesFactory.setPublisher(boolean),
AttributesFactory.setEnableConflation(boolean),
AttributesFactory.setEnableAsyncConflation(boolean)public void testRegisterInterestUseCases()
UnsupportedOperationException occurs as expectedpublic static void checkAttributes()
public static void doPuts()
public static void doInvalidates()
public static void doDestroy()
public static Object getEntryCount()
public static void registerInterest()
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client.Region.registerInterest(Object),
Region.registerInterest(Object, InterestResultPolicy),
Region.registerInterestRegex(String),
Region.registerInterestRegex(String, InterestResultPolicy)public static void unregisterInterest()
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client.Region.unregisterInterest(Object),
Region.unregisterInterestRegex(String)public static void getInterestForRegion()
UnsupportedOperationException is thrown
in all the cases since test-region does not have bridge-server or
bridge-client.Region.getInterestList(),
Region.getInterestListRegex()Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.