public class CacheServerTransactionsDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
destroyed |
protected static boolean |
invalidated |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
CacheServerTransactionsDUnitTest(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeCache() |
static void |
commitTransactionOnClient() |
static void |
commitTransactionOnServer1() |
static void |
commitTransactionOnServer2() |
static void |
createClientCache(String host,
Integer port) |
static void |
createClientCache(String host,
Integer port1,
Integer port2) |
static void |
createEntries() |
static Integer |
createServerCache(Integer maxThreads) |
static void |
destroyInTransaction(String server) |
protected int |
getMaxThreads() |
static void |
invalidateInTransaction(String server) |
static void |
putInTransaction(String server) |
static void |
registerKeys() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testDestroysOneServerToClientTransactionsPropagation()
Test for destroy propagation to the clients when there is one server and two
clients connected to the server.
|
void |
testDestroysServerToClientTransactionsPropagation()
Test for destroy propagation to the clients when there are 2 servers and two
clients connected to both servers.
|
void |
testDestroysServerToClientTransactionsPropagationWithOneConnection()
Test for destroy propagation to the clients when there are 2 servers and two
clients connected to sepatate servers.
|
void |
testInvalidatesOneServerToClientTransactionsPropagation()
Test for invalidate propagation to the clients when there is one server and two
clients connected to the server.
|
void |
testInvalidatesServerToClientTransactionsPropagation()
Test for invalidate propagation to the clients when there are 2 servers and two
clients connected to both servers.
|
void |
testInvalidatesServerToClientTransactionsPropagationWithOneConnection()
Test for invalidate propagation to the clients when there are 2 servers and two
clients connected to separate servers.
|
void |
testOneServerToClientTransactionsPropagation()
Test for update propagation to the clients when there is one server and two
clients connected to the server.
|
void |
testServerToClientTransactionsPropagation()
Test for update propagation to the clients when there are 2 servers and two
clients connected to both the servers.
|
void |
testServerToClientTransactionsPropagationWithOneClientConnectedToOneServer()
Test for update propagation to the clients when there are 2 servers and two
clients connected to separate server.
|
static void |
verifyDestroys() |
static void |
verifyInvalidates() |
static void |
verifyNotUpdated() |
static void |
verifyUpdates() |
static void |
verifyUpdatesOnServer() |
void |
YOGESH_testClientToServerCommits()
Tests if client commits are propagated to servers or not
Currently it is UnsupportedOperationException hence the test is commented
|
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, toStringprotected static boolean destroyed
protected static boolean invalidated
public CacheServerTransactionsDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testOneServerToClientTransactionsPropagation()
public void testServerToClientTransactionsPropagation()
public void testServerToClientTransactionsPropagationWithOneClientConnectedToOneServer()
public void testInvalidatesOneServerToClientTransactionsPropagation()
public void testInvalidatesServerToClientTransactionsPropagation()
public void testInvalidatesServerToClientTransactionsPropagationWithOneConnection()
public void testDestroysOneServerToClientTransactionsPropagation()
public void testDestroysServerToClientTransactionsPropagation()
public void testDestroysServerToClientTransactionsPropagationWithOneConnection()
public void YOGESH_testClientToServerCommits()
public static void commitTransactionOnClient()
public static void verifyUpdatesOnServer()
public static void putInTransaction(String server)
public static void invalidateInTransaction(String server) throws Exception
Exceptionpublic static void destroyInTransaction(String server) throws Exception
Exceptionpublic static void commitTransactionOnServer2()
public static void commitTransactionOnServer1()
public static void verifyNotUpdated()
public static void verifyUpdates()
public static void verifyInvalidates()
public static void verifyDestroys()
public static void createClientCache(String host, Integer port) throws Exception
Exceptionpublic static void createClientCache(String host, Integer port1, Integer port2) throws Exception
Exceptionprotected int getMaxThreads()
public static Integer createServerCache(Integer maxThreads) throws Exception
Exceptionpublic static void createEntries()
public static void registerKeys()
public static void closeCache()
public void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.