@Test public void shouldStartInSyncWhenStartupTimeoutIsZero() { final SyncStateTracker tracker = new SyncStateTracker( asyncRunner, syncService, network, STARTUP_TARGET_PEER_COUNT, Duration.ofSeconds(0)); assertThat(tracker.getCurrentSyncState()).isEqualTo(SyncState.IN_SYNC); }
public SyncState getCurrentSyncState() { return currentState; }
SyncStateTracker extends Service { public SyncState getCurrentSyncState() { return currentState; } }
SyncStateTracker extends Service { public SyncState getCurrentSyncState() { return currentState; } SyncStateTracker(
      final AsyncRunner asyncRunner,
      final SyncService syncService,
      final P2PNetwork<? extends Peer> network,
      final int startupTargetPeerCount,
      final Duration startupTimeout); }
SyncStateTracker extends Service { public SyncState getCurrentSyncState() { return currentState; } SyncStateTracker(
      final AsyncRunner asyncRunner,
      final SyncService syncService,
      final P2PNetwork<? extends Peer> network,
      final int startupTargetPeerCount,
      final Duration startupTimeout); SyncState getCurrentSyncState(); }
SyncStateTracker extends Service { public SyncState getCurrentSyncState() { return currentState; } SyncStateTracker(
      final AsyncRunner asyncRunner,
      final SyncService syncService,
      final P2PNetwork<? extends Peer> network,
      final int startupTargetPeerCount,
      final Duration startupTimeout); SyncState getCurrentSyncState();  }