public class MessageSourceConsentFunctionTest extends Object
MessageSourceConsentFunction unit test.| Modifier and Type | Class and Description |
|---|---|
private class |
MessageSourceConsentFunctionTest.MockMessageSource |
| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.idp.consent.logic.impl.MessageSourceConsentFunction |
function |
private net.shibboleth.idp.consent.logic.impl.HashFunction |
hashFunction |
private org.springframework.context.MessageSource |
messageSource |
private ProfileRequestContext |
prc |
private org.springframework.webflow.execution.RequestContext |
src |
| Constructor and Description |
|---|
MessageSourceConsentFunctionTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
private void |
setUpDescriptor(boolean compareValues)
Add a
ConsentFlowDescriptor to the ProfileRequestContext. |
void |
testEmptyValueMessageCode() |
void |
testInstantiationIdMessageCode() |
void |
testMessageSourceConsent() |
void |
testMessageSourceConsentCompareValues() |
void |
testNullIdMessageCode() |
void |
testNullInput() |
void |
testNullValueMessageCode() |
private org.springframework.webflow.execution.RequestContext src
private ProfileRequestContext prc
private org.springframework.context.MessageSource messageSource
private net.shibboleth.idp.consent.logic.impl.HashFunction hashFunction
private net.shibboleth.idp.consent.logic.impl.MessageSourceConsentFunction function
private void setUpDescriptor(boolean compareValues)
ConsentFlowDescriptor to the ProfileRequestContext.compareValues - whether consent equality includes comparing consent valuespublic void testNullInput()
public void testEmptyValueMessageCode()
throws Exception
Exceptionpublic void testInstantiationIdMessageCode()
throws Exception
ExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.