@Test(timeout = 1000L) public void loadsNewConfigs() { startDaemon(); boxSyncConfigs.add(config); waitForSyncerStart(); FakeSyncer fakeSyncer = (FakeSyncer) daemon.getSyncers().get(0); assertSame(config, fakeSyncer.config); waitUntil(() -> fakeSyncer.started); }
protected List<Syncer> getSyncers() { return syncers; }
SyncDaemon implements Runnable { protected List<Syncer> getSyncers() { return syncers; } }
SyncDaemon implements Runnable { protected List<Syncer> getSyncers() { return syncers; } SyncDaemon(ObservableList<BoxSyncConfig> configs, SyncerFactory syncerFactory); }
SyncDaemon implements Runnable { protected List<Syncer> getSyncers() { return syncers; } SyncDaemon(ObservableList<BoxSyncConfig> configs, SyncerFactory syncerFactory); @Override void run(); void stop(); void restart(BoxSyncConfig config); }
SyncDaemon implements Runnable { protected List<Syncer> getSyncers() { return syncers; } SyncDaemon(ObservableList<BoxSyncConfig> configs, SyncerFactory syncerFactory); @Override void run(); void stop(); void restart(BoxSyncConfig config);  }