public void buildCalls(CougarMessageContentTypeEnum responseContentTypeEnum) {
for (int i = 0; i < numberOfRequests+1; i++) {
//Setup call beans
HttpCallBean callBean = new HttpCallBean();
callBean.setServiceName("baseline","cougarBaseline");
callBean.setVersion("v2");
callBean.setOperationName("testParameterStylesQA");
Map<String, String> headerParams = new HashMap<String, String>();
headerParams.put("headerParam", "Foo");
callBean.setHeaderParams(headerParams);
Map<String, String> queryParams = new HashMap<String, String>();
String queryParameter = "queryParameter-" + identifier + "-" + i;
queryParams.put("queryParam", queryParameter);
String dateQueryParameter = "2009-06-01T13:50:00.0Z";
queryParams.put("dateQueryParam", dateQueryParameter);
callBean.setQueryParams(queryParams);
httpCallBeans.add(callBean);
Map<String, String> acceptProtocols = new HashMap<String,String>();
switch (responseContentTypeEnum) {
case JSON:
acceptProtocols.put("application/json", "");
break;
case XML:
acceptProtocols.put("application/xml", "");
break;
}
callBean.setAcceptProtocols(acceptProtocols);
//Store expected responses
HttpResponseBean responseBean = new HttpResponseBean();
String responseXmlString = "<SimpleResponse><message>headerParam=Foo,queryParam=" + queryParameter + ",dateQueryParam=Mon Jun 01 13:50:00 UTC 2009</message></SimpleResponse>";
Document responseBaseObject = xHelpers.getXMLObjectFromString(responseXmlString);