public class CounterStorageKeyFunctionTest extends Object
CounterStorageKeyFunction.| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.idp.consent.flow.impl.ConsentFlowDescriptor |
descriptor |
private net.shibboleth.idp.consent.logic.impl.CounterStorageKeyFunction |
f |
private Pair<ProfileRequestContext,List<String>> |
input |
private List<String> |
keys |
private ProfileInterceptorContext |
pic |
private ProfileRequestContext |
prc |
private org.springframework.webflow.execution.RequestContext |
src |
private MemoryStorageService |
storageService |
| Constructor and Description |
|---|
CounterStorageKeyFunctionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCounter(String key,
int iterations)
Create counter storage records.
|
void |
setUp() |
void |
testDifferentOrderCounters() |
void |
testMissingCounters() |
void |
testNoCounters() |
void |
testNoFlowDescriptor() |
void |
testNoProfileInterceptorContext() |
void |
testNoStorageContext() |
void |
testNoStorageService() |
void |
testNullKeysInput() |
void |
testNullPairInput() |
void |
testNullProfileRequestContextInput() |
void |
testSameOrderCounters() |
void |
testUnmodifiableInterceptorContextStrategy() |
void |
testUnmodifiableStorageContextStrategy() |
private org.springframework.webflow.execution.RequestContext src
private ProfileRequestContext prc
private ProfileInterceptorContext pic
private net.shibboleth.idp.consent.flow.impl.ConsentFlowDescriptor descriptor
private MemoryStorageService storageService
private Pair<ProfileRequestContext,List<String>> input
private net.shibboleth.idp.consent.logic.impl.CounterStorageKeyFunction f
protected void createCounter(@Nonnull String key, @Nonnull int iterations) throws IOException, InterruptedException
key - storage keyiterations - number of storage record versionsIOException - if a storage service error occursInterruptedException - if thread error occurs while sleepingpublic void testUnmodifiableInterceptorContextStrategy()
throws Exception
Exceptionpublic void testUnmodifiableStorageContextStrategy()
throws Exception
Exceptionpublic void testNullProfileRequestContextInput()
throws Exception
Exceptionpublic void testNoProfileInterceptorContext()
throws Exception
Exceptionpublic void testDifferentOrderCounters()
throws Exception
ExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.