Class ActionTestingSupport
- java.lang.Object
-
- net.shibboleth.idp.profile.testing.ActionTestingSupport
-
public class ActionTestingSupport extends Object
Helper methods for creating/testing objects within profile action tests. When methods herein refer to mock objects they are always objects that have been created via Mockito unless otherwise noted.
-
-
Field Summary
Fields Modifier and Type Field Description static StringINBOUND_MSG_IDID of the inbound message.static StringINBOUND_MSG_ISSUERIssuer of the inbound message.static StringOUTBOUND_MSG_IDID of the outbound message.static StringOUTBOUND_MSG_ISSUERIssuer of the outbound message.
-
Constructor Summary
Constructors Constructor Description ActionTestingSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertEvent(Event event, String id)Checks that the event is not null, that the event source is not null, and that the event ID is the given id.static voidassertProceedEvent(Event event)Checks that the given event is a proceed event.
-
-
-
Field Detail
-
INBOUND_MSG_ID
public static final String INBOUND_MSG_ID
ID of the inbound message.- See Also:
- Constant Field Values
-
INBOUND_MSG_ISSUER
public static final String INBOUND_MSG_ISSUER
Issuer of the inbound message.- See Also:
- Constant Field Values
-
OUTBOUND_MSG_ID
public static final String OUTBOUND_MSG_ID
ID of the outbound message.- See Also:
- Constant Field Values
-
OUTBOUND_MSG_ISSUER
public static final String OUTBOUND_MSG_ISSUER
Issuer of the outbound message.- See Also:
- Constant Field Values
-
-
Method Detail
-
assertEvent
public static void assertEvent(Event event, String id)
Checks that the event is not null, that the event source is not null, and that the event ID is the given id.- Parameters:
event- the event to checkid- ...
-
assertProceedEvent
public static void assertProceedEvent(Event event)
Checks that the given event is a proceed event.- Parameters:
event- the event to check
-
-