Class TestDeleteRequestSender

    • Constructor Detail

      • TestDeleteRequestSender

        public TestDeleteRequestSender()
    • Method Detail

      • doAndRespondWith

        public TestDeleteRequestSender doAndRespondWith​(org.springframework.http.ResponseEntity.BodyBuilder builder,
                                                        java.lang.Runnable act)
        Description copied from class: OutboundInvocationTracker
        Specifies to perform an action before return the specified response from the send method.
        Overrides:
        doAndRespondWith in class OutboundInvocationTracker<TestDeleteRequestSender>
        Parameters:
        builder - a response builder to use to create the response after performing the action act.
        act - an action to perform before the response is returned. This allows to inject time-sensitive behavior to the test to call certain code when a desired item is being processed instead of relying on guessing the right time to execute that code in parallel.
        Returns:
        a tracker with the response specified.