Package de.idos.updates.store

Examples of de.idos.updates.store.NullInstallation


import de.idos.updates.store.OngoingInstallation;

public class NullVersionInstaller implements VersionInstaller {
  @Override
  public OngoingInstallation install(Version latestVersion) {
    return new NullInstallation();
  }
View Full Code Here


  public OngoingInstallation updateToLatestVersion() {
    assertCheckHasRun();
    if (latestVersionIsNewerThanInstalledVersion()) {
      return latestUpdate.install();
    }
    return new NullInstallation();
  }
View Full Code Here

    fileServer.start();
  }

  @Test
  public void extendsBaseUrlWhenListingContent() throws Exception {
    HttpInstaller installer = createInstaller(new NullInstallation());
    List<String> elementsToInstall = installer.findAllElementsToInstall(new NumericVersion(5, 0, 4));
    assertThat(elementsToInstall.size(), is(2));
  }
View Full Code Here

  public void runsInstallationInASeparateThread() throws Exception {
    addVersion("4.2.1");
    addContentToVersion("4.2.1", "content");
    NumericVersion version = new NumericVersion(4, 2, 1);
    CountDownLatch latch = new CountDownLatch(1);
    Installation installation = new SlowInstallation(new NullInstallation(), latch);
    when(store.beginInstallation(version)).thenReturn(installation);
    FilesystemRepository repository = new FilesystemRepository(folder.getRoot());
    ProgressReport report = mock(ProgressReport.class);
    repository.reportAllProgressTo(report);
    repository.transferVersionTo(version, store);
View Full Code Here

TOP

Related Classes of de.idos.updates.store.NullInstallation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.