Package org.opensaml.core.xml.config
Class ConfigurationTest
- java.lang.Object
-
- org.opensaml.core.xml.config.ConfigurationTest
-
public class ConfigurationTest extends Object
Test case for the library configuration mechanism.
-
-
Field Summary
Fields Modifier and Type Field Description private BasicParserPoolparserPoolParser pool used to parse example config filesprivate QNamesimpleXMLObjectQNameSimpleElement QName
-
Constructor Summary
Constructors Constructor Description ConfigurationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitClass()protected voidsetUp()protected voidtearDown()voidtestIDAttributeConfiguration()Tests that global ID attribute registration/deregistration via the XMLTooling config file is functioning properly.voidtestIDAttributeRegistration()Tests that global ID attribute registration/deregistration is functioning properly.voidtestInvalidConfiguration()Tests that a schema invalid configuration file is properly identified as such.voidtestObjectProviderConfiguration()Tests loading of multiple configuration files.
-
-
-
Field Detail
-
parserPool
private BasicParserPool parserPool
Parser pool used to parse example config files
-
simpleXMLObjectQName
private QName simpleXMLObjectQName
SimpleElement QName
-
-
Method Detail
-
testInvalidConfiguration
public void testInvalidConfiguration() throws ExceptionTests that a schema invalid configuration file is properly identified as such.- Throws:
Exception- if something bad happens
-
testObjectProviderConfiguration
public void testObjectProviderConfiguration() throws ExceptionTests loading of multiple configuration files.- Throws:
Exception- if something bad happens
-
testIDAttributeRegistration
public void testIDAttributeRegistration()
Tests that global ID attribute registration/deregistration is functioning properly.
-
testIDAttributeConfiguration
public void testIDAttributeConfiguration() throws XMLParserException, XMLConfigurationExceptionTests that global ID attribute registration/deregistration via the XMLTooling config file is functioning properly.- Throws:
XMLParserException- thrown if the XML config file can not be readXMLConfigurationException- thrown if the ID attributes can not be registered
-
initClass
@BeforeClass protected void initClass() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
-