ConverterUtil { public static List<ResponseData> getResponseData(Set<RequestData> responseData) { List<ResponseData> dataList = new ArrayList<ResponseData>(); for (RequestData rd : responseData) { if (rd.getValue() != null) { if (rd.getValue().length() > 1 && rd.getValue().charAt(0) == '=' && rd.getValue().charAt(1) != '=') { AssignmentData data = new AssignmentData(); data.setKey(rd.getKey()); data.setValue(rd.getValue().substring(1)); dataList.add(data); data.setPhase(rd.getPhase()); } else { ValidationData vd = new ValidationData(); vd.setKey(rd.getKey()); vd.setCondition(getCondition(rd.getValue())); vd.setValue(getValidateValue(rd.getValue())); vd.setPhase(rd.getPhase()); dataList.add(vd); } } } 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 testGetResponseData_1() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseData_2() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseData_3() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseData_4() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseData_5() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testGetResponseData_6() throws Exception { Set<RequestData> responseData = new HashSet(); List<ResponseData> result = ConverterUtil.getResponseData(responseData); assertNotNull(result); assertEquals(0, result.size()); }