Class HttpInvokerHelper

java.lang.Object
de.ikor.sip.foundation.testkit.util.HttpInvokerHelper

public class HttpInvokerHelper extends Object
Helper class with common methods for rest and soap invokers
  • Method Details

    • prepareHeaders

      public static org.springframework.util.MultiValueMap<String,String> prepareHeaders(org.apache.camel.Exchange exchange)
      Creates headers for test kit execution
      Parameters:
      exchange - Exchange from which data is extracted
      Returns:
      Map with test kit headers
    • createExchangeResponse

      public static org.apache.camel.Exchange createExchangeResponse(org.springframework.http.ResponseEntity<String> response, org.apache.camel.CamelContext camelContext)
      Create Exchange with a response recovered from test execution
      Parameters:
      response - ResponseEntityasd98 of test execution
      camelContext - CamelContext
      Returns:
      Exchange with response