Class MessagingJavaTestGenerator<T extends MessagingJavaTestGenerator<T>>

    • Constructor Detail

      • MessagingJavaTestGenerator

        public MessagingJavaTestGenerator()
    • Method Detail

      • generateInboundMessage

        protected Message generateInboundMessage​(Message message)
        Inbound message generation hook for subclasses.
        Parameters:
        message -
        Returns:
      • generateOutboundMessage

        protected Message generateOutboundMessage​(Message message)
        Outbound message generation hook for subclasses.
        Parameters:
        message -
        Returns:
      • getSendRequestCodeProvider

        protected <M extends MessageCodeProvider<M> getSendRequestCodeProvider​(M message)
      • getReceiveResponseCodeProvider

        protected <M extends MessageCodeProvider<M> getReceiveResponseCodeProvider​(M message)
      • getSendResponseCodeProvider

        protected <M extends MessageCodeProvider<M> getSendResponseCodeProvider​(M message)
      • getReceiveRequestCodeProvider

        protected <M extends MessageCodeProvider<M> getReceiveRequestCodeProvider​(M message)
      • withEndpoint

        public T withEndpoint​(String endpoint)
        Set the endpoint to use.
        Parameters:
        endpoint -
        Returns:
      • withRequest

        public T withRequest​(Message request)
        Set the request to use.
        Parameters:
        request -
        Returns:
      • withResponse

        public T withResponse​(Message response)
        Set the response to use.
        Parameters:
        response -
        Returns:
      • addRequestHeader

        public T addRequestHeader​(String name,
                                  Object value)
        Adds a request header to use.
        Parameters:
        name -
        value -
        Returns:
      • addResponseHeader

        public T addResponseHeader​(String name,
                                   Object value)
        Adds a response header to use.
        Parameters:
        name -
        value -
        Returns:
      • setEndpoint

        public void setEndpoint​(String endpoint)
        Sets the endpoint.
        Parameters:
        endpoint -
      • getEndpoint

        public String getEndpoint()
        Gets the endpoint.
        Returns: