public static List<BatchResponse> postWithSingleRequest(final RequestSpecification requestSpec,final ResponseSpecification responseSpec,final BatchRequest br){
  final List<BatchRequest> batchRequests=new ArrayList<>();
  batchRequests.add(br);
  final String jsonifiedRequest=BatchHelper.toJsonString(batchRequests);
  final List<BatchResponse> response=BatchHelper.postBatchRequestsWithoutEnclosingTransaction(requestSpec,responseSpec,jsonifiedRequest);
  Assert.assertNotNull(response);
  Assert.assertTrue(response.size() > 0);
  return response;
}

public static List < BatchResponse > postWithSingleRequest ( final RequestSpecification requestSpec , final ResponseSpecification responseSpec , final BatchRequest br ) { final List < BatchRequest > batchRequests = new ArrayList < > ( ) ; batchRequests . add ( br ) ; final String jsonifiedRequest = BatchHelper . toJsonString ( batchRequests ) ; final List < BatchResponse > response = BatchHelper . postBatchRequestsWithoutEnclosingTransaction ( requestSpec , responseSpec , jsonifiedRequest ) ; Assert . assertNotNull ( response ) ; Assert . assertTrue ( response . size ( ) > 0 ) ; return response ; }
returns a batchresponse based on the given batchrequest , by posting the request to the server .
