Class BaseAttributeDefinitionParserTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- net.shibboleth.idp.attribute.resolver.spring.BaseAttributeDefinitionParserTest
-
- Direct Known Subclasses:
BaseEncoderDefinitionParserTest,ComputedIdDataConnectorParserTest,ContextDerivedAttributeDefinitionsParserTest,DependencyTypesTest,ManagedConnectionTest,MappedAttributeDefinitionParserTest,PrescopedAttributeDefinitionParserTest,PrincipalNameAttributeDefinitionParserTest,RegexSplitAttributeDefinitionParserTest,Regressions,SAML1NameIdentifierAttributeDefinitionParserTest,SAML2NameIDdentifierAttributeDefinitionParserTest,ScopedAttributeDefinitionParserTest,ScriptDataConnectorParserTest,ScriptedAttributeParserTest,SimpleAttributeParserTest,SourceValueParserTest,StaticDataConnectorParserTest,StoredIdDataConnectorParserTest,SubjectDataConnectorParserTest,TemplateAttributeDefinitionParserTest,ValueMapParserTest
public abstract class BaseAttributeDefinitionParserTest extends org.opensaml.core.OpenSAMLInitBaseTestCaseBase class for tests forSimpleAttributeDefinitionParserand by extensionBaseAttributeDefinitionParser. Note that several helper classes are marked private. This is purely to discourage accidental use of non validating parsers with no need.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_FILE_PATHstatic StringBEAN_FILE_PATHstatic StringDATACONNECTOR_FILE_PATHstatic StringENCODER_FILE_PATHprotected GenericApplicationContextpendingTeardownContextstatic StringPRINCIPALCONNECTOR_FILE_PATH
-
Constructor Summary
Constructors Constructor Description BaseAttributeDefinitionParserTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, Class<Type> claz)protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, Class<Type> claz, boolean supressValid)protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, Class<Type> claz, GenericApplicationContext context)private <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, Class<Type> claz, GenericApplicationContext context, boolean supressValidation)protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, String beanFileName, Class<Type> claz)private <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition>
TypegetAttributeDefn(String fileName, String beanFileName, Class<Type> claz, boolean supressValidation)protected <Type> TypegetBean(String fileName, Class<Type> claz, GenericApplicationContext context)protected <Type> TypegetBean(String fileName, Class<Type> claz, GenericApplicationContext context, boolean supressValid)protected <Type extends net.shibboleth.idp.attribute.resolver.DataConnector>
TypegetDataConnector(String fileName, Class<Type> claz)private <Type extends net.shibboleth.idp.attribute.resolver.DataConnector>
TypegetDataConnector(String fileName, Class<Type> claz, boolean supressValid)static net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImplgetResolver(ApplicationContext appCtx)protected voidloadFile(String fileName, GenericApplicationContext context)private voidloadFile(String fileName, GenericApplicationContext context, boolean supressValid)protected voidsetTestContext(GenericApplicationContext context)voidtearDownTestContext()
-
-
-
Field Detail
-
BEAN_FILE_PATH
public static final String BEAN_FILE_PATH
- See Also:
- Constant Field Values
-
ATTRIBUTE_FILE_PATH
public static final String ATTRIBUTE_FILE_PATH
- See Also:
- Constant Field Values
-
DATACONNECTOR_FILE_PATH
public static final String DATACONNECTOR_FILE_PATH
- See Also:
- Constant Field Values
-
ENCODER_FILE_PATH
public static final String ENCODER_FILE_PATH
- See Also:
- Constant Field Values
-
PRINCIPALCONNECTOR_FILE_PATH
public static final String PRINCIPALCONNECTOR_FILE_PATH
- See Also:
- Constant Field Values
-
pendingTeardownContext
protected GenericApplicationContext pendingTeardownContext
-
-
Method Detail
-
tearDownTestContext
@AfterMethod public void tearDownTestContext()
-
setTestContext
protected void setTestContext(GenericApplicationContext context)
-
loadFile
private void loadFile(String fileName, GenericApplicationContext context, boolean supressValid)
-
loadFile
protected void loadFile(String fileName, GenericApplicationContext context)
-
getBean
protected <Type> Type getBean(String fileName, Class<Type> claz, GenericApplicationContext context, boolean supressValid)
-
getBean
protected <Type> Type getBean(String fileName, Class<Type> claz, GenericApplicationContext context)
-
getAttributeDefn
protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, Class<Type> claz, GenericApplicationContext context)
-
getAttributeDefn
private <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, Class<Type> claz, GenericApplicationContext context, boolean supressValidation)
-
getAttributeDefn
protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, String beanFileName, Class<Type> claz)
-
getAttributeDefn
private <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, String beanFileName, Class<Type> claz, boolean supressValidation)
-
getAttributeDefn
protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, Class<Type> claz)
-
getAttributeDefn
protected <Type extends net.shibboleth.idp.attribute.resolver.AttributeDefinition> Type getAttributeDefn(String fileName, Class<Type> claz, boolean supressValid)
-
getDataConnector
protected <Type extends net.shibboleth.idp.attribute.resolver.DataConnector> Type getDataConnector(String fileName, Class<Type> claz)
-
getDataConnector
private <Type extends net.shibboleth.idp.attribute.resolver.DataConnector> Type getDataConnector(String fileName, Class<Type> claz, boolean supressValid)
-
getResolver
public static net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl getResolver(ApplicationContext appCtx)
-
-