TimedInactivityRestartStrategy implements RestartStrategy { @Override public boolean requiresRestart() { long currentTime = new Date().getTime(); if (currentTime - lastMessageProcessedTime > inactivityPeriodMs()) { return true; } return false; } TimedInactivityRestartStrategy(); @Override void messageProcessed(AdaptrisMessage msg); @Override boolean requiresRestart(); TimeInterval getInactivityPeriod(); void setInactivityPeriod(TimeInterval inactivityPeriod);  }
@Test public void testNoMessage() throws Exception { assertFalse(restartStrategy.requiresRestart()); }