@Test public void testKeepAliveTimerTaskErrorHandling() throws Exception { KeepAliveTimerTask timerTask = new KeepAliveTimerTask(sxpConnection, 0); when(sxpConnection.getChannelHandlerContext(any())).thenThrow(ChannelHandlerContextNotFoundException.class); timerTask.call(); verify(sxpConnection).setTimer(TimerType.KeepAliveTimer, timerTask.getPeriod()); }
public int getPeriod() { return period; }
SxpTimerTask implements Callable<T> { public int getPeriod() { return period; } }
SxpTimerTask implements Callable<T> { public int getPeriod() { return period; } protected  SxpTimerTask(int period); }
SxpTimerTask implements Callable<T> { public int getPeriod() { return period; } protected  SxpTimerTask(int period); int getPeriod(); }
SxpTimerTask implements Callable<T> { public int getPeriod() { return period; } protected  SxpTimerTask(int period); int getPeriod();  }