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, unmarshallElement, 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 ComponentInitializationException
ComponentInitializationExceptionpublic void setUp()
public void testNoCriteria()
throws ResolverException
ResolverExceptionpublic void testNoMetadata()
throws ResolverException
ResolverExceptionpublic void testSignedRequest()
throws ResolverException
ResolverExceptionpublic void testSignedRequestBadBinding()
throws ResolverException
ResolverExceptionpublic void testNoEndpoints()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testBadLocation()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testBadBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testUnsupportedBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testBadIndex()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testInMetadata()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testDefault()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testDefaultForBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testMultiple()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionpublic void testMultipleWithBinding()
throws org.opensaml.core.xml.io.UnmarshallingException,
ResolverException
org.opensaml.core.xml.io.UnmarshallingExceptionResolverExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.