OwaspReader implements RecordedScriptReader { public static Set<RequestData> rawJsonToSet(String response) throws JSONException { JSONObject jsonObject = new JSONObject(response); String[] names = JSONObject.getNames(jsonObject); List<RequestData> itemList = new ArrayList<RequestData>(); for (String name : names) { traverse(name, jsonObject, itemList, new RequestDataBuilder( RequestDataType.requestPostData.name())); } return new LinkedHashSet<RequestData>(itemList); } OwaspReader(); @Override List<ScriptStep> read(String xml); @Override List<ScriptStep> read(Reader reader); List<ScriptStep> transactionsToRequest( Collection<Transaction> entries); static Set<RequestData> rawJsonToSet(String response);  }
@Test() public void testRawJsonToSet_1() throws Exception { String response = ""; assertThrows(org.json.JSONException.class, () -> OwaspReader.rawJsonToSet(response)); }
@Test() public void testRawJsonToSet_2() throws Exception { String response = ""; assertThrows(org.json.JSONException.class, () -> OwaspReader.rawJsonToSet(response)); }
@Test() public void testRawJsonToSet_3() throws Exception { String response = ""; assertThrows(org.json.JSONException.class, () -> OwaspReader.rawJsonToSet(response)); }