public class DefaultEndpointResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
DefaultEndpointResolver.| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.criterion.EndpointCriterion<org.opensaml.saml.saml2.metadata.AssertionConsumerService> |
endpointCrit |
private static String |
LOCATION |
private static String |
LOCATION_ART |
private static String |
LOCATION_POST |
private org.opensaml.saml.common.binding.impl.DefaultEndpointResolver<org.opensaml.saml.saml2.metadata.AssertionConsumerService> |
resolver |
| Constructor and Description |
|---|
DefaultEndpointResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
classSetUp() |
private org.opensaml.saml.saml2.metadata.SPSSODescriptor |
loadMetadata(String path) |
void |
setUp() |
void |
testBadBinding()
No endpoint at a location with the right binding requested.
|
void |
testBadIndex()
No endpoint with a requested index.
|
void |
testBadLocation()
No endpoint with the location requested.
|
void |
testDefault()
Get the default endpoint.
|
void |
testDefaultForBinding()
Get the default endpoint with a binding.
|
void |
testInMetadata()
Requested location/binding are in metadata.
|
void |
testMultiple()
All endpoints of the right type.
|
void |
testMultipleWithBinding()
All endpoints of the right type and binding.
|
void |
testNoCriteria() |
void |
testNoEndpoints()
An SP with no endpoints in metadata.
|
void |
testNoMetadata() |
void |
testSignedRequest() |
void |
testSignedRequestBadBinding()
SP requests an endpoint but we don't support the binding.
|
void |
testUnsupportedBinding()
Endpoint matches but we don't support the binding.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate static final String LOCATION
private static final String LOCATION_POST
private static final String LOCATION_ART
private org.opensaml.saml.common.binding.impl.DefaultEndpointResolver<org.opensaml.saml.saml2.metadata.AssertionConsumerService> resolver
private org.opensaml.saml.criterion.EndpointCriterion<org.opensaml.saml.saml2.metadata.AssertionConsumerService> endpointCrit
public void classSetUp()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void setUp()
public void testNoCriteria()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoMetadata()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testSignedRequest()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testSignedRequestBadBinding()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNoEndpoints()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testBadLocation()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testBadBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testUnsupportedBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testBadIndex()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testInMetadata()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testDefault()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testDefaultForBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testMultiple()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testMultipleWithBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
net.shibboleth.utilities.java.support.resolver.ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionCopyright © 1999–2015. All rights reserved.