@Override public void runTests(TestPage pageToTest) throws IOException, InterruptedException { processingQueue.addLast(pageToTest); String html = pageToTest.getHtml(); try { if (html.length() == 0) client.send(EMPTY_PAGE_CONTENT); else client.send(html); } catch (InterruptedException e) { exceptionOccurred(e); throw e; } catch (IOException e) { exceptionOccurred(e); throw e; } }
@Override public void runTests(TestPage pageToTest) throws IOException, InterruptedException { String html = pageToTest.getDecoratedData().getHtml(); if (html.length() == 0) client.send(EMPTY_PAGE_CONTENT); else client.send(html); }