@Test public void testGetTimeoutAsInt() { System.out.println("getTimeoutAsInt"); AbstractIPSampler instance = new AbstractIPSamplerImpl(); int expResult = 0; int result = instance.getTimeoutAsInt(); assertEquals(expResult, result); }
protected int getTimeoutAsInt() { try { return Integer.parseInt(getTimeout()); } catch (NumberFormatException ex) { log.error("Wrong timeout: " + getTimeout(), ex); return 0; } }
AbstractIPSampler extends AbstractSampler implements Serializable, Cloneable, Interruptible { protected int getTimeoutAsInt() { try { return Integer.parseInt(getTimeout()); } catch (NumberFormatException ex) { log.error("Wrong timeout: " + getTimeout(), ex); return 0; } } }
AbstractIPSampler extends AbstractSampler implements Serializable, Cloneable, Interruptible { protected int getTimeoutAsInt() { try { return Integer.parseInt(getTimeout()); } catch (NumberFormatException ex) { log.error("Wrong timeout: " + getTimeout(), ex); return 0; } } AbstractIPSampler(); }
AbstractIPSampler extends AbstractSampler implements Serializable, Cloneable, Interruptible { protected int getTimeoutAsInt() { try { return Integer.parseInt(getTimeout()); } catch (NumberFormatException ex) { log.error("Wrong timeout: " + getTimeout(), ex); return 0; } } AbstractIPSampler(); ByteBuffer getRecvBuf(); final String getHostName(); String getPort(); String getRequestData(); String getTimeout(); void setHostName(String text); void setPort(String text); void setRequestData(String text); void setTimeout(String text); @Override SampleResult sample(Entry entry); }
AbstractIPSampler extends AbstractSampler implements Serializable, Cloneable, Interruptible { protected int getTimeoutAsInt() { try { return Integer.parseInt(getTimeout()); } catch (NumberFormatException ex) { log.error("Wrong timeout: " + getTimeout(), ex); return 0; } } AbstractIPSampler(); ByteBuffer getRecvBuf(); final String getHostName(); String getPort(); String getRequestData(); String getTimeout(); void setHostName(String text); void setPort(String text); void setRequestData(String text); void setTimeout(String text); @Override SampleResult sample(Entry entry); static final String RECV_BUFFER_LEN_PROPERTY; static final String RESULT_DATA_LIMIT; static final String HOSTNAME; static final String PORT; static final String TIMEOUT; static final String DATA; static final String CRLF; static final String EMPTY; static final String RC200; static final String RC500; }