public class HTTPRequestValidationHandlerTest extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
contentType |
private org.opensaml.messaging.handler.impl.HTTPRequestValidationHandler |
handler |
private MockHttpServletRequest |
httpRequest |
private MessageContext |
messageContext |
private String |
method |
private boolean |
requireSecured |
| Constructor and Description |
|---|
HTTPRequestValidationHandlerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected MockHttpServletRequest |
buildServletRequest()
Builds a mock
HttpServletRequest. |
protected void |
setUp() |
void |
testAllGood()
Test all parameters valid.
|
void |
testContentTypeBad()
Bad request content type.
|
void |
testRequestMethodBad()
Bad request method.
|
void |
testRequireSecureBad()
Bad request secure flag.
|
private MockHttpServletRequest httpRequest
private String contentType
private String method
private boolean requireSecured
private org.opensaml.messaging.handler.impl.HTTPRequestValidationHandler handler
private MessageContext messageContext
protected MockHttpServletRequest buildServletRequest()
HttpServletRequest.public void testAllGood()
throws MessageHandlerException
MessageHandlerExceptionpublic void testContentTypeBad()
throws MessageHandlerException
MessageHandlerExceptionpublic void testRequestMethodBad()
throws MessageHandlerException
MessageHandlerExceptionpublic void testRequireSecureBad()
throws MessageHandlerException
MessageHandlerExceptionCopyright © 1999–2014. All rights reserved.