Class AttributeConsumingServiceSelectorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.metadata.support.tests.AttributeConsumingServiceSelectorTest
-
public class AttributeConsumingServiceSelectorTest extends XMLObjectBaseTestCase
Tests of AttributeConsumingServiceSelector.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeConsumingServiceSelectoracsSelectorprivate StringmdFileNameprivate FilesystemMetadataResolvermdProviderprivate PredicateRoleDescriptorResolverroleResolver-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description AttributeConsumingServiceSelectorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private StringgetName(AttributeConsumingService acs)Get the first service name of an AttributeConsumingService.protected voidsetUp()voidtestAttributeQueryType()Test AttributeQueryDescriptorType.voidtestExplicitDefault()Test explicit isDefault="true".voidtestFirstFalseDefault()Test default as first isDefault="false".voidtestFirstMissingDefault()Test default as first missing default.voidtestInvalidIndex()Test invalid index.voidtestInvalidIndexWithUseDefault()Test invalid index with onBadIndexUseDefault of true.voidtestNoRoleDescriptor()Test missing RoleDescriptor input.voidtestWithValidIndex()Test valid index.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
mdFileName
private String mdFileName
-
mdProvider
private FilesystemMetadataResolver mdProvider
-
roleResolver
private PredicateRoleDescriptorResolver roleResolver
-
acsSelector
private AttributeConsumingServiceSelector acsSelector
-
-
Method Detail
-
testWithValidIndex
public void testWithValidIndex() throws ResolverExceptionTest valid index.- Throws:
ResolverException- ...
-
testExplicitDefault
public void testExplicitDefault() throws ResolverExceptionTest explicit isDefault="true".- Throws:
ResolverException- ...
-
testFirstMissingDefault
public void testFirstMissingDefault() throws ResolverExceptionTest default as first missing default.- Throws:
ResolverException- ...
-
testFirstFalseDefault
public void testFirstFalseDefault() throws ResolverExceptionTest default as first isDefault="false".- Throws:
ResolverException- ...
-
testAttributeQueryType
public void testAttributeQueryType() throws ResolverExceptionTest AttributeQueryDescriptorType.- Throws:
ResolverException- ...
-
testInvalidIndex
public void testInvalidIndex() throws ResolverExceptionTest invalid index.- Throws:
ResolverException- ...
-
testInvalidIndexWithUseDefault
public void testInvalidIndexWithUseDefault() throws ResolverExceptionTest invalid index with onBadIndexUseDefault of true.- Throws:
ResolverException- ...
-
testNoRoleDescriptor
public void testNoRoleDescriptor()
Test missing RoleDescriptor input.
-
getName
private String getName(AttributeConsumingService acs)
Get the first service name of an AttributeConsumingService.- Parameters:
acs- the attribute consuming service- Returns:
- the first name of the service
-
-