public class ClientCQPostAuthorizationDUnitTest extends ClientAuthorizationTestBase
ClientAuthorizationTestBase.AuthzCqListener, ClientAuthorizationTestBase.OperationWithAction, ClientAuthorizationTestBase.OpFlags, ClientAuthorizationTestBase.TestAuthzCredentialGenerator, ClientAuthorizationTestBase.TestCredentialGeneratorDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
cqNameToQueryStrings |
client1, client2, clientExpectedExceptions, regionName, server1, server2, serverExpectedExceptions, subregionNamelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientCQPostAuthorizationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
allowCQsToRegister(Integer number) |
static void |
checkCQListeners(Integer numOfUsers,
Boolean[] expectedListenerInvocation,
Integer createEventsSize,
Integer updateEventsSize,
Boolean closeCache) |
static void |
createClientCache(Properties javaProps,
String authInit,
Properties[] authProps,
Integer[] ports,
Integer numOfUsers,
Boolean[] postAuthzAllowed) |
static void |
createCQ(Integer num) |
static void |
createServerCache(Properties serverProps,
Properties javaProps,
Integer serverPort) |
static void |
createServerCache(Properties serverProps,
Properties javaProps,
Integer mcastPort,
Integer serverPort) |
static void |
doPuts(Integer num,
Boolean putLastKey) |
void |
doStartUp(Integer numOfUsers,
Integer numOfPuts,
Boolean[] postAuthzAllowed) |
void |
doStartUp(Integer numOfUsers,
Integer numOfPuts,
Boolean[] postAuthzAllowed,
Boolean failover) |
static void |
executeCQ(Integer num,
Boolean[] initialResults,
Integer expectedResultsSize,
String[] expectedErr,
Boolean[] postAuthzAllowed) |
static void |
putLastKey() |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
Tears down the test.
|
void |
testAllowCQForAllMultiusers() |
void |
testAllowCQForAllMultiusersWithFailover() |
void |
testDisallowCQForAllMultiusers() |
void |
testDisallowCQForSomeMultiusers() |
static void |
waitForLastKey(Integer cqIndex) |
static void |
waitForLastKeyUpdate(Integer cqIndex) |
buildProperties, createCacheClient, createCacheServer, createCacheServer, doOp, executeOpBlock, getAllGeneratorCombos, getRegion, getSubregion, indicesToString, runOpsWithFailoveraddExpectedException, 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 ClientCQPostAuthorizationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void tearDown2()
throws Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCaseExceptionpublic void testAllowCQForAllMultiusers()
throws Exception
Exceptionpublic void testDisallowCQForAllMultiusers()
throws Exception
Exceptionpublic void testDisallowCQForSomeMultiusers()
throws Exception
Exceptionpublic void testAllowCQForAllMultiusersWithFailover()
throws Exception
Exceptionpublic void doStartUp(Integer numOfUsers, Integer numOfPuts, Boolean[] postAuthzAllowed) throws Exception
Exceptionpublic void doStartUp(Integer numOfUsers, Integer numOfPuts, Boolean[] postAuthzAllowed, Boolean failover) throws Exception
Exceptionpublic static void createServerCache(Properties serverProps, Properties javaProps, Integer serverPort)
public static void createServerCache(Properties serverProps, Properties javaProps, Integer mcastPort, Integer serverPort)
public static void createClientCache(Properties javaProps, String authInit, Properties[] authProps, Integer[] ports, Integer numOfUsers, Boolean[] postAuthzAllowed)
public static void createCQ(Integer num)
public static void executeCQ(Integer num, Boolean[] initialResults, Integer expectedResultsSize, String[] expectedErr, Boolean[] postAuthzAllowed)
public static void putLastKey()
public static void waitForLastKey(Integer cqIndex)
public static void waitForLastKeyUpdate(Integer cqIndex)
public static void allowCQsToRegister(Integer number)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.