Class HTTPRedirectDeflateDecoderTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.binding.decoding.impl.HTTPRedirectDeflateDecoderTest
-
public class HTTPRedirectDeflateDecoderTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private HTTPRedirectDeflateDecoderdecoderprivate 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 HTTPRedirectDeflateDecoderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringencodeMessage(SAMLObject message)private voidpopulateRequestURL(MockHttpServletRequest request, String requestURL)protected voidsetUp()voidtestExplicitDefaultSAMLEncoding()voidtestInvalidRequestDecoding()Test decoding a Base64 invalid SAML Request.voidtestRequestDecoding()voidtestResponseDecoding()voidtestUnsupportedSAMLEncoding()-
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 HTTPRedirectDeflateDecoder 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
-
testResponseDecoding
public void testResponseDecoding() throws MessageDecodingException- Throws:
MessageDecodingException
-
testRequestDecoding
public void testRequestDecoding() throws MessageDecodingException, MessageEncodingException, MarshallingException, EncodingException
-
testInvalidRequestDecoding
public void testInvalidRequestDecoding() throws MessageDecodingExceptionTest decoding a Base64 invalid SAML Request.- Throws:
MessageDecodingException- decoding exception, which is expected.
-
testExplicitDefaultSAMLEncoding
public void testExplicitDefaultSAMLEncoding() throws MessageDecodingException, MessageEncodingException, MarshallingException, EncodingException
-
testUnsupportedSAMLEncoding
public void testUnsupportedSAMLEncoding() throws MessageDecodingException, MessageEncodingException, MarshallingException, EncodingException
-
populateRequestURL
private void populateRequestURL(MockHttpServletRequest request, String requestURL)
-
encodeMessage
protected String encodeMessage(SAMLObject message) throws MessageEncodingException, MarshallingException, EncodingException
-
-