ConverterUtil { public static List<Header> getPostData(Set<RequestData> postData) { List<Header> dataList = new ArrayList<Header>(); for (RequestData requestData : postData) { Header td = new Header(); td.setKey(requestData.getKey()); td.setValue(requestData.getValue()); dataList.add(td); } return dataList; }  static HDWorkload convertScriptToHdWorkload(Script script); static HDWorkload convertWorkload(Workload workload, BaseJob job); static String getWorkloadXML(HDWorkload hdWorkload); static boolean isAssignment(RequestData data); static List<Header> getPostData(Set<RequestData> postData); static List<ResponseData> getResponseData(Set<RequestData> responseData); static List<Header> getResponseHeaders(Set<RequestData> responseHeaders, Set<RequestData> responseCookies); static List<Header> getRequestHeaders(Set<RequestData> headers, Set<RequestData> cookies); static boolean includedHeader(String header);  }
@Test public void testGetPostData_1() throws Exception { Set<RequestData> postData = new HashSet(); List<Header> result = ConverterUtil.getPostData(postData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetPostData_2() throws Exception { Set<RequestData> postData = new HashSet(); List<Header> result = ConverterUtil.getPostData(postData); assertNotNull(result); assertEquals(0, result.size()); }