Class ActionTestingSupport


  • public class ActionTestingSupport
    extends Object
    Helper methods for creating/testing objects within profile action tests.
    • Constructor Detail

      • ActionTestingSupport

        public ActionTestingSupport()
    • Method Detail

      • assertEvent

        public static void assertEvent​(@Nonnull
                                       org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
                                       @Nonnull
                                       Object event)
        Checks that the request context contains an EventContext, and that the event content is as given.
        Parameters:
        profileRequestContext - the context to check
        event - event to check
      • assertProceedEvent

        public static void assertProceedEvent​(@Nonnull
                                              org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
        Checks that the given request context does not contain an EventContext (thus signaling a "proceed" event).
        Parameters:
        profileRequestContext - the context to check