Class ResponseHelper

java.lang.Object
fr.gouv.vitam.common.server.application.junit.ResponseHelper

public class ResponseHelper extends Object
Helper for getting Response as Outbound Response
  • Method Details

    • getOutboundResponse

      public static javax.ws.rs.core.Response getOutboundResponse(javax.ws.rs.core.Response.Status status, Object entity, String contentType, Map<String,String> headers)
      Helper to build an outbound Response (mocking remote client response object)
      Parameters:
      status - the status of response
      entity - could be null
      contentType - could be null
      headers - could be null
      Returns:
      the mocked outbound Response