Package fr.gouv.vitam.common.client
Class VitamRestTestClient.VitamRestTest
java.lang.Object
fr.gouv.vitam.common.client.VitamRestTestClient.VitamRestTest
- Enclosing class:
- VitamRestTestClient
VItam Rest Test: mimic of Restassured.RequestSpecification
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(javax.ws.rs.core.MediaType accept) addPathParameter
(String name, String value) Note: add this method in order in addition to "path". Will add to final path + /name/{value}int
<T> T
int
execute
(VitamRequestBuilder request) <T> T
execute
(VitamRequestBuilder request, Class<T> entityTpe) int
<T> T
int
int
<T> T
int
<T> T
int
<T> T
status
(javax.ws.rs.core.Response.Status status) statusCode
(int statusCode) then()
toString()
when()
-
Method Details
-
toString
-
then
- Returns:
- this
-
when
- Returns:
- this
-
status
- Parameters:
status
- the expected status- Returns:
- this
-
statusCode
- Parameters:
statusCode
- the expected status- Returns:
- this
-
accept
- Parameters:
accept
- the accept MediaType- Returns:
- this
-
body
- Parameters:
body
-mediaType
-- Returns:
- this
-
addHeader
- Parameters:
key
-value
-- Returns:
- this
-
addPathParameter
Note: add this method in order in addition to "path". Will add to final path + /name/{value}- Parameters:
name
-value
-- Returns:
- this
-
execute
- Throws:
VitamClientInternalException
-
get
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
delete
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
head
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
options
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
post
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
put
- Parameters:
path
-- Returns:
- the status code
- Throws:
VitamClientInternalException
-
execute
public <T> T execute(VitamRequestBuilder request, Class<T> entityTpe) throws VitamClientInternalException - Throws:
VitamClientInternalException
-
get
- Parameters:
path
-entityTpe
-- Returns:
- the entity of type
- Throws:
VitamClientInternalException
-
delete
- Parameters:
path
-entityTpe
-- Returns:
- the entity of type
- Throws:
VitamClientInternalException
-
options
- Parameters:
path
-entityTpe
-- Returns:
- the entity of type
- Throws:
VitamClientInternalException
-
post
- Parameters:
path
-entityTpe
-- Returns:
- the entity of type
- Throws:
VitamClientInternalException
-
put
- Parameters:
path
-entityTpe
-- Returns:
- the entity of type
- Throws:
VitamClientInternalException
-