public class OperationsPropagationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_KEY |
static String |
CREATE_VALUE |
static String |
DESTROY_KEY |
static String |
DESTROY_VALUE |
static String |
INVALIDATE_KEY |
static String |
INVALIDATE_VALUE |
static int |
PORT1
Port of server1
|
static int |
PORT2
Port of server2
|
static String |
PUTALL_KEY |
static String |
PUTALL_KEY2 |
static String |
PUTALL_VALUE |
static String |
PUTALL_VALUE2 |
protected static com.gemstone.gemfire.cache.Region |
region
region to be created for the test
|
static String |
UPDATE_KEY |
static String |
UPDATE_VALUE1 |
static String |
UPDATE_VALUE2 |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
OperationsPropagationDUnitTest(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertKeyValuePresent()
assert the initial key values are present
|
static void |
assertOperationsSucceeded()
assert the operations reached the client successfully
|
static void |
closeCache()
closes the cache and disconnects the vm from teh distributed system
|
static void |
createClientCache(String host,
Integer port2)
create the client and connect it to the server with the given port
|
static Integer |
createServerCache()
Create the server
|
static void |
doOperations()
do the operations which you want to propagate
|
static void |
initialPutKeyValue()
put the initial keys and values
|
void |
setUp()
Create the server1, server2 (in the same DS) and client1 (which is
connected only to server2
|
void |
tearDown2()
close the caches of the client and the servers
|
void |
testOperationsPropagation()
This test: 1) First the initial keys and values 2) Verify that the initial
keys and values have reached the client 3) Do the operations which we want
to propagate (create, update, invalidate and destroy) 4) Verify the
operations reached the 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 static int PORT1
public static int PORT2
protected static com.gemstone.gemfire.cache.Region region
public static final String CREATE_KEY
public static final String CREATE_VALUE
public static final String UPDATE_KEY
public static final String UPDATE_VALUE1
public static final String UPDATE_VALUE2
public static final String INVALIDATE_KEY
public static final String INVALIDATE_VALUE
public static final String DESTROY_KEY
public static final String DESTROY_VALUE
public static final String PUTALL_KEY
public static final String PUTALL_VALUE
public static final String PUTALL_KEY2
public static final String PUTALL_VALUE2
public OperationsPropagationDUnitTest(String name)
name - public void setUp()
throws Exception
setUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
public static Integer createServerCache() throws Exception
Exceptionpublic static void createClientCache(String host, Integer port2) throws Exception
port2 - Exceptionpublic void testOperationsPropagation()
throws Exception
Exceptionpublic static void initialPutKeyValue()
public static void doOperations()
public static void assertKeyValuePresent()
public static void assertOperationsSucceeded()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.