Class ReceivedEndpointSecurityHandlerTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.common.binding.security.impl.ReceivedEndpointSecurityHandlerTest
-
public class ReceivedEndpointSecurityHandlerTest extends XMLObjectBaseTestCase
Test the received endpoint check message handler.
-
-
Field Summary
Fields Modifier and Type Field Description private ReceivedEndpointSecurityHandlerhandlerprivate MockHttpServletRequesthttpRequestprivate StringintendedDestinationUriprivate MessageContextmessageContextprivate SAMLBindingContextsamlBindingContext-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description ReceivedEndpointSecurityHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidpopulateRequestURL(MockHttpServletRequest request, String requestURL)voidsetUp()voidtestEndpointGood()voidtestEndpointInvalidHost()voidtestEndpointInvalidPath()voidtestEndpointMissingDestinationNotRequired()voidtestEndpointMissingDestinationRequired()-
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
-
messageContext
private MessageContext messageContext
-
samlBindingContext
private SAMLBindingContext samlBindingContext
-
httpRequest
private MockHttpServletRequest httpRequest
-
intendedDestinationUri
private String intendedDestinationUri
-
handler
private ReceivedEndpointSecurityHandler handler
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws MessageException, ComponentInitializationException
-
testEndpointGood
public void testEndpointGood() throws MessageHandlerException- Throws:
MessageHandlerException
-
testEndpointInvalidPath
public void testEndpointInvalidPath() throws MessageHandlerException- Throws:
MessageHandlerException
-
testEndpointInvalidHost
public void testEndpointInvalidHost() throws MessageHandlerException- Throws:
MessageHandlerException
-
testEndpointMissingDestinationNotRequired
public void testEndpointMissingDestinationNotRequired() throws MessageHandlerException- Throws:
MessageHandlerException
-
testEndpointMissingDestinationRequired
public void testEndpointMissingDestinationRequired() throws MessageHandlerException- Throws:
MessageHandlerException
-
populateRequestURL
private void populateRequestURL(MockHttpServletRequest request, String requestURL)
-
-