Class ResponseHelper
java.lang.Object
fr.gouv.vitam.common.server.application.junit.ResponseHelper
Helper for getting Response as Outbound Response
-
Method Summary
-
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 responseentity
- could be nullcontentType
- could be nullheaders
- could be null- Returns:
- the mocked outbound Response
-