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 java.util.Map<java.lang.String,java.lang.String> |
cqNameToQueryStrings |
client1, client2, clientExpectedExceptions, regionName, server1, server2, serverExpectedExceptions, subregionNamelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientCQPostAuthorizationDUnitTest(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
allowCQsToRegister(java.lang.Integer number) |
static void |
checkCQListeners(java.lang.Integer numOfUsers,
java.lang.Boolean[] expectedListenerInvocation,
java.lang.Integer createEventsSize,
java.lang.Integer updateEventsSize,
java.lang.Boolean closeCache) |
static void |
createClientCache(java.util.Properties javaProps,
java.lang.String authInit,
java.util.Properties[] authProps,
java.lang.Integer[] ports,
java.lang.Integer numOfUsers,
java.lang.Boolean[] postAuthzAllowed) |
static void |
createCQ(java.lang.Integer num) |
static void |
createServerCache(java.util.Properties serverProps,
java.util.Properties javaProps,
java.lang.Integer serverPort) |
static void |
createServerCache(java.util.Properties serverProps,
java.util.Properties javaProps,
java.lang.Integer mcastPort,
java.lang.Integer serverPort) |
static void |
doPuts(java.lang.Integer num,
java.lang.Boolean putLastKey) |
void |
doStartUp(java.lang.Integer numOfUsers,
java.lang.Integer numOfPuts,
java.lang.Boolean[] postAuthzAllowed) |
void |
doStartUp(java.lang.Integer numOfUsers,
java.lang.Integer numOfPuts,
java.lang.Boolean[] postAuthzAllowed,
java.lang.Boolean failover) |
static void |
executeCQ(java.lang.Integer num,
java.lang.Boolean[] initialResults,
java.lang.Integer expectedResultsSize,
java.lang.String[] expectedErr,
java.lang.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(java.lang.Integer cqIndex) |
static void |
waitForLastKeyUpdate(java.lang.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 static final java.util.Map<java.lang.String,java.lang.String> cqNameToQueryStrings
public ClientCQPostAuthorizationDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void tearDown2()
throws java.lang.Exception
DistributedTestCaseDistributedTestCase.tearDown() method, and should be over ridden in its place.tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic void testAllowCQForAllMultiusers()
throws java.lang.Exception
java.lang.Exceptionpublic void testDisallowCQForAllMultiusers()
throws java.lang.Exception
java.lang.Exceptionpublic void testDisallowCQForSomeMultiusers()
throws java.lang.Exception
java.lang.Exceptionpublic void testAllowCQForAllMultiusersWithFailover()
throws java.lang.Exception
java.lang.Exceptionpublic void doStartUp(java.lang.Integer numOfUsers,
java.lang.Integer numOfPuts,
java.lang.Boolean[] postAuthzAllowed)
throws java.lang.Exception
java.lang.Exceptionpublic void doStartUp(java.lang.Integer numOfUsers,
java.lang.Integer numOfPuts,
java.lang.Boolean[] postAuthzAllowed,
java.lang.Boolean failover)
throws java.lang.Exception
java.lang.Exceptionpublic static void createServerCache(java.util.Properties serverProps,
java.util.Properties javaProps,
java.lang.Integer serverPort)
public static void createServerCache(java.util.Properties serverProps,
java.util.Properties javaProps,
java.lang.Integer mcastPort,
java.lang.Integer serverPort)
public static void createClientCache(java.util.Properties javaProps,
java.lang.String authInit,
java.util.Properties[] authProps,
java.lang.Integer[] ports,
java.lang.Integer numOfUsers,
java.lang.Boolean[] postAuthzAllowed)
public static void createCQ(java.lang.Integer num)
public static void executeCQ(java.lang.Integer num,
java.lang.Boolean[] initialResults,
java.lang.Integer expectedResultsSize,
java.lang.String[] expectedErr,
java.lang.Boolean[] postAuthzAllowed)
public static void doPuts(java.lang.Integer num,
java.lang.Boolean putLastKey)
public static void putLastKey()
public static void waitForLastKey(java.lang.Integer cqIndex)
public static void waitForLastKeyUpdate(java.lang.Integer cqIndex)
public static void allowCQsToRegister(java.lang.Integer number)
public static void checkCQListeners(java.lang.Integer numOfUsers,
java.lang.Boolean[] expectedListenerInvocation,
java.lang.Integer createEventsSize,
java.lang.Integer updateEventsSize,
java.lang.Boolean closeCache)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.