//1) Request
//Given
String req = new ObjectMapper().writeValueAsString(new Request("2016-11-15"));
//set HttpHeaders
//set HttpEntity
// When
ResponseEntity responseEntity = restTemplate.exchange(url, HttpMethod.POST, httpEntity, String.class);
Is there a convenient way of unit testing multiple REST
API
requests? I would like to create a bunch of requests to submit to a queue which will then be processed. The request are to have different HttpHeaders
and different ReportRequestBody
.
I have done single request unit testing and are able to capture statuses using ResponseEntity
.
Can anyone point me to some examples or documentation on best practices. I am a beginner and I am not sure where to start with multiple requests.