Package de.idos.updates.store

Examples of de.idos.updates.store.FilesystemInstallationStarter


    folder.create();
    this.repositoryFolder = folder.newFolder("repository");
    this.versionStoreFolder = folder.newFolder("versions");
    Repository repository = new FilesystemRepository(repositoryFolder);
    versionStore = new FilesystemVersionStore(versionStoreFolder,
            new ZipInstallationStarter(new FilesystemInstallationStarter()));
    updateSystemBuilder.useStore(versionStore);
    updateSystemBuilder.useRepository(repository);
    Installation installation = versionStore.beginInstallation(currentVersion);
    File file = folder.newFile();
    installation.addContent(new FileDataInVersion(file));
View Full Code Here


        builder.versionStore = new File(applicationHome, "versions");
        return builder;
    }

    public VersionStore create() {
        return new FilesystemVersionStore(versionStore, new ZipInstallationStarter(new FilesystemInstallationStarter()));
    }
View Full Code Here

    verify(installation).addContent(isA(UrlDataInVersion.class));
  }

  @Test
  public void worksIfNoReporterIsRegistered() throws Exception {
    repository.transferVersionTo(new NumericVersion(5, 0, 4), new FilesystemVersionStore(folder.getRoot(), new FilesystemInstallationStarter()));
    assertThat(new File(folder.getRoot(), "5.0.4").exists(), is(true));
  }
View Full Code Here

TOP

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

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.