Class HTTPPostDecoderTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.binding.decoding.impl.HTTPPostDecoderTest
-
public class HTTPPostDecoderTest extends XMLObjectBaseTestCase
Test case for HTTP POST decoders.
-
-
Field Summary
Fields Modifier and Type Field Description private HTTPPostDecoderdecoderprivate StringexpectedRelayValueprivate MockHttpServletRequesthttpRequestprivate static StringINVALID_BASE64_TRAILINGInvalid base64 string as it has invalid trailing digits.-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description HTTPPostDecoderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestInvalidRequestDecoding()Test decoding a Base64 invalid SAML Request.voidtestRequestDecoding()Test decoding a SAML httpRequest.voidtestResponseDecoding()Test decoding a SAML response.-
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
-
expectedRelayValue
private String expectedRelayValue
-
decoder
private HTTPPostDecoder decoder
-
httpRequest
private MockHttpServletRequest httpRequest
-
INVALID_BASE64_TRAILING
private static final String INVALID_BASE64_TRAILING
Invalid base64 string as it has invalid trailing digits.- See Also:
- Constant Field Values
-
-
Method Detail
-
testRequestDecoding
public void testRequestDecoding() throws MessageDecodingExceptionTest decoding a SAML httpRequest.- Throws:
MessageDecodingException- ...
-
testInvalidRequestDecoding
public void testInvalidRequestDecoding()
Test decoding a Base64 invalid SAML Request. Should throw aMessageDecodingExceptionwrapping aDecodingException.
-
testResponseDecoding
public void testResponseDecoding() throws MessageDecodingExceptionTest decoding a SAML response.- Throws:
MessageDecodingException- ...
-
-