OwaspReader implements RecordedScriptReader { public List<ScriptStep> transactionsToRequest( Collection<Transaction> entries) { List<ScriptStep> result = new ArrayList<ScriptStep>(); int index = 0; for (Transaction transaction : entries) { result.add(transactionToResult(transaction, ++index)); } return result; } 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 testTransactionsToRequest_1() throws Exception { OwaspReader fixture = new OwaspReader(); Collection<Transaction> entries = new LinkedList(); List<ScriptStep> result = fixture.transactionsToRequest(entries); assertNotNull(result); assertEquals(0, result.size()); }
@Test public void testTransactionsToRequest_2() throws Exception { OwaspReader fixture = new OwaspReader(); Collection<Transaction> entries = new LinkedList(); List<ScriptStep> result = fixture.transactionsToRequest(entries); assertNotNull(result); assertEquals(0, result.size()); }