@Test public void testInterrupt() { System.out.println("interrupt"); boolean expResult = true; boolean result = instance.interrupt(); assertEquals(expResult, result); }
@Override public boolean interrupt() { if (savedSock != null && savedSock.isOpen()) { try { savedSock.close(); } catch (IOException ex) { log.warn("Exception while interrupting channel: ", ex); return false; } } return true; }
HTTPRawSampler extends AbstractIPSampler { @Override public boolean interrupt() { if (savedSock != null && savedSock.isOpen()) { try { savedSock.close(); } catch (IOException ex) { log.warn("Exception while interrupting channel: ", ex); return false; } } return true; } }
HTTPRawSampler extends AbstractIPSampler { @Override public boolean interrupt() { if (savedSock != null && savedSock.isOpen()) { try { savedSock.close(); } catch (IOException ex) { log.warn("Exception while interrupting channel: ", ex); return false; } } return true; } HTTPRawSampler(); }
HTTPRawSampler extends AbstractIPSampler { @Override public boolean interrupt() { if (savedSock != null && savedSock.isOpen()) { try { savedSock.close(); } catch (IOException ex) { log.warn("Exception while interrupting channel: ", ex); return false; } } return true; } HTTPRawSampler(); @Override SampleResult sample(Entry entry); boolean isUseKeepAlive(); void setUseKeepAlive(boolean selected); boolean isParseResult(); void setParseResult(boolean selected); String getFileToSend(); void setFileToSend(String text); @Override boolean interrupt(); }
HTTPRawSampler extends AbstractIPSampler { @Override public boolean interrupt() { if (savedSock != null && savedSock.isOpen()) { try { savedSock.close(); } catch (IOException ex) { log.warn("Exception while interrupting channel: ", ex); return false; } } return true; } HTTPRawSampler(); @Override SampleResult sample(Entry entry); boolean isUseKeepAlive(); void setUseKeepAlive(boolean selected); boolean isParseResult(); void setParseResult(boolean selected); String getFileToSend(); void setFileToSend(String text); @Override boolean interrupt();  }