Package org.opensaml.profile.action.impl
Class EncodeMessageTest
java.lang.Object
org.opensaml.profile.action.impl.EncodeMessageTest
Unit test for
EncodeMessage.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classMock implementation ofMessageEncoderwhich either returns aMessageContextwith a mock message or throws aMessageDecodingException. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate MockMessageprivate MessageContextprivate ProfileRequestContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidTest that the action proceeds properly if the message can be decoded.voidvoidTest that the action errors out properly if the message can not be decoded.
-
Field Details
-
message
-
encoder
-
messageContext
-
profileCtx
-
expectedMessage
-
-
Constructor Details
-
EncodeMessageTest
public EncodeMessageTest()
-
-
Method Details
-
setUp
- Throws:
ComponentInitializationException
-
testNoFactory
- Throws:
ComponentInitializationException
-
testDecodeMessage
Test that the action proceeds properly if the message can be decoded.- Throws:
Exception- if something goes wrong
-
testThrowException
Test that the action errors out properly if the message can not be decoded.- Throws:
Exception- if something goes wrong
-