@Test public void doesNotNotifyIfPauseStatusWasChanged() { config.pause(); resetObserver(); config.pause(); assertNotUpdated(); }
@Override public void pause() { if (!isPaused()) { setChanged(); } paused = true; notifyObservers(); }
DefaultBoxSyncConfig extends Observable implements BoxSyncConfig, Observer { @Override public void pause() { if (!isPaused()) { setChanged(); } paused = true; notifyObservers(); } }
DefaultBoxSyncConfig extends Observable implements BoxSyncConfig, Observer { @Override public void pause() { if (!isPaused()) { setChanged(); } paused = true; notifyObservers(); } DefaultBoxSyncConfig(
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    );  DefaultBoxSyncConfig(
        String name,
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    ); }
DefaultBoxSyncConfig extends Observable implements BoxSyncConfig, Observer { @Override public void pause() { if (!isPaused()) { setChanged(); } paused = true; notifyObservers(); } DefaultBoxSyncConfig(
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    );  DefaultBoxSyncConfig(
        String name,
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    ); @Override int getId(); @Override void setId(int id); @Override void setLocalPath(Path localPath); @Override Path getLocalPath(); @Override BoxPath getRemotePath(); @Override void setRemotePath(BoxPath remotePath); @Override void pause(); @Override void unpause(); @Override boolean isPaused(); @Override Identity getIdentity(); @Override Account getAccount(); @Override String getName(); @Override void setName(String name); @Override synchronized SyncIndex getSyncIndex(); @Override void setSyncer(Syncer syncer); @Override Syncer getSyncer(); @Override void withSyncer(Consumer<Syncer> callback); @Override void update(Observable o, Object arg); void setSyncIndex(SyncIndex syncIndex); }
DefaultBoxSyncConfig extends Observable implements BoxSyncConfig, Observer { @Override public void pause() { if (!isPaused()) { setChanged(); } paused = true; notifyObservers(); } DefaultBoxSyncConfig(
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    );  DefaultBoxSyncConfig(
        String name,
        Path localPath,
        BoxPath remotePath,
        Identity identity,
        Account account,
        SyncIndexFactory syncIndexFactory
    ); @Override int getId(); @Override void setId(int id); @Override void setLocalPath(Path localPath); @Override Path getLocalPath(); @Override BoxPath getRemotePath(); @Override void setRemotePath(BoxPath remotePath); @Override void pause(); @Override void unpause(); @Override boolean isPaused(); @Override Identity getIdentity(); @Override Account getAccount(); @Override String getName(); @Override void setName(String name); @Override synchronized SyncIndex getSyncIndex(); @Override void setSyncer(Syncer syncer); @Override Syncer getSyncer(); @Override void withSyncer(Consumer<Syncer> callback); @Override void update(Observable o, Object arg); void setSyncIndex(SyncIndex syncIndex);  }