public class EncodeMessageTest extends Object
EncodeMessage.| Modifier and Type | Class and Description |
|---|---|
private class |
EncodeMessageTest.MockEncoderFactory |
private class |
EncodeMessageTest.MockMessageEncoder
Mock implementation of
MessageEncoder which either returns a
MessageContext with a mock message or throws a MessageDecodingException. |
| Modifier and Type | Field and Description |
|---|---|
private EncodeMessageTest.MockMessageEncoder |
encoder |
private String |
expectedMessage |
private MockMessage |
message |
private MessageContext<MockMessage> |
messageContext |
private ProfileRequestContext |
profileCtx |
| Constructor and Description |
|---|
EncodeMessageTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testDecodeMessage()
Test that the action proceeds properly if the message can be decoded.
|
void |
testNoFactory() |
void |
testThrowException()
Test that the action errors out properly if the message can not be decoded.
|
private MockMessage message
private EncodeMessageTest.MockMessageEncoder encoder
private MessageContext<MockMessage> messageContext
private ProfileRequestContext profileCtx
private String expectedMessage
public void setUp()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testNoFactory()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testDecodeMessage()
throws Exception
ExceptionCopyright © 1999–2014. All rights reserved.