ConverterUtil { public static List<Header> getResponseHeaders(Set<RequestData> responseHeaders, Set<RequestData> responseCookies) { List<Header> dataList = new ArrayList<Header>(); for (RequestData rd : responseHeaders) { if (rd.getValue() != null) { Header header = new Header(); header.setKey(rd.getKey()); if (rd.getValue().length() > 1 && rd.getValue().charAt(0) == '=' && rd.getValue().charAt(1) != '=') { header.setValue(rd.getValue().substring(1)); } dataList.add(header); } } for (RequestData sc : responseCookies) { if (sc.getValue() == null) continue; if (sc.getValue().startsWith("@")) { Header header = new Header(); header.setKey(sc.getValue().substring(1)); header.setValue(sc.getKey()); } } 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 testGetResponseHeaders_1() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseHeaders_2() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseHeaders_3() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseHeaders_4() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseHeaders_5() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseHeaders_6() throws Exception { Set<RequestData> responseHeaders = new HashSet(); Set<RequestData> responseCookies = new HashSet(); List<Header> result = ConverterUtil.getResponseHeaders(responseHeaders, responseCookies); assertNotNull(result); assertEquals(0, result.size()); }