Package org.opensaml.profile.action.impl
Class DecodeMessageTest
java.lang.Object
org.opensaml.profile.action.impl.DecodeMessageTest
Unit test for
DecodeMessage.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classMock implementation ofMessageDecoderwhich either returns aMessageContextwith a mock message or throws aMessageDecodingException. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Test setup.voidTest that the action proceeds properly if the message can be decoded.voidTest that the action errors out properly if the message can not be decoded.
-
Field Details
-
message
-
decoder
-
profileCtx
-
-
Constructor Details
-
DecodeMessageTest
public DecodeMessageTest()
-
-
Method Details
-
setUp
Test setup.- Throws:
ComponentInitializationException
-
testDecodeMessage
Test that the action proceeds properly if the message can be decoded.- Throws:
ComponentInitializationException- if something goes wrong
-
testFailure
Test that the action errors out properly if the message can not be decoded.- Throws:
ComponentInitializationException- if something goes wrong
-