Class AddGeneratedKeyHeaderHandlerTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.saml2.binding.impl.AddGeneratedKeyHeaderHandlerTest
-
public class AddGeneratedKeyHeaderHandlerTest extends OpenSAMLInitBaseTestCase
AddGeneratedKeyHeaderHandlerunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private AddGeneratedKeyHeaderHandlerhandlerprivate MessageContextmessageCtx
-
Constructor Summary
Constructors Constructor Description AddGeneratedKeyHeaderHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestMissingEnvelope()Test that the handler errors on a missing SOAP context.voidtestSuccess()Test that the handler works.voidtestUnauthenticated()Test that the handler does nothing on a missing context.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
messageCtx
private MessageContext messageCtx
-
handler
private AddGeneratedKeyHeaderHandler handler
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testUnauthenticated
public void testUnauthenticated() throws MessageHandlerExceptionTest that the handler does nothing on a missing context.- Throws:
MessageHandlerException- ...
-
testMissingEnvelope
public void testMissingEnvelope() throws MessageHandlerException, NoSuchAlgorithmExceptionTest that the handler errors on a missing SOAP context.- Throws:
MessageHandlerException- ...NoSuchAlgorithmException- ...
-
testSuccess
public void testSuccess() throws MessageHandlerException, NoSuchAlgorithmException, EncodingExceptionTest that the handler works.- Throws:
MessageHandlerException- ...NoSuchAlgorithmException- ...EncodingException- on failure to base64 encode the key.
-
-