ConverterUtil { public static boolean isAssignment(RequestData data) { if (data.getType().equals(RequestDataType.bodyAssignment.name()) || data.getType().equals(RequestDataType.cookieAssignment.name()) || data.getType().equals(RequestDataType.headerAssignment.name()) || (data.getType().equals("responseData") && data.getValue() != null && data.getValue().startsWith("=") && !data.getValue().startsWith("=="))) { return true; } return false; }  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 testIsAssignment_1() throws Exception { RequestData data = new RequestData("", "", ""); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }
@Test public void testIsAssignment_2() throws Exception { RequestData data = new RequestData("", "", ""); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }
@Test public void testIsAssignment_3() throws Exception { RequestData data = new RequestData("", "", ""); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }
@Test public void testIsAssignment_4() throws Exception { RequestData data = new RequestData("", "=", "responseData"); boolean result = ConverterUtil.isAssignment(data); assertTrue(result); }
@Test public void testIsAssignment_5() throws Exception { RequestData data = new RequestData("", "", ""); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }
@Test public void testIsAssignment_6() throws Exception { RequestData data = new RequestData("", "", "responseData"); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }
@Test public void testIsAssignment_7() throws Exception { RequestData data = new RequestData("", "", "responseData"); boolean result = ConverterUtil.isAssignment(data); assertFalse(result); }