Package de.idos.updates.repository

Examples of de.idos.updates.repository.FilesystemRepository


  DefaultUpdateSystem updateSystem;
  VersionTransfer transfer = mock(VersionTransfer.class);

  @Before
  public void setUp() throws Exception {
    repository = spy(new FilesystemRepository(folder.getRoot()));
    folder.newFolder(FilesystemRepository.AVAILABLE_VERSIONS, "5.3.2");
    updateSystem = new DefaultUpdateSystem(versionStore, versionStore, repository, transfer);
  }
View Full Code Here


  @Before
  public void initializeVersionRepository() throws Throwable {
    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);
View Full Code Here

    }
  }

  private Repository createRepository() {
    if (configuration.repositoryTypeForLatestVersion() == RepositoryType.File) {
      return new FilesystemRepository(new File(configuration.repositoryLocationForLatestVersion()));
    } else {
      return new HttpRepository(configuration.repositoryLocationForLatestVersion());
    }
  }
View Full Code Here

TOP

Related Classes of de.idos.updates.repository.FilesystemRepository

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.