Package com.tuenti.supernanny.repo

Examples of com.tuenti.supernanny.repo.ArchiveRepo


    Set<Artifact> artifacts = resolver.resolve(initialRequirements);
    expectArtifacts(new ArtifactData[] { new ArtifactData("flik", "1.0"), new ArtifactData("flak", "1.0"), new ArtifactData("flok", "1.0") }, artifacts);
  }
 
  private void prepareRepo() throws FileNotFoundException, IOException {
    ArchiveRepo repo = new ArchiveRepo("http://localhost", false, 10) {
      @Override
      public RepositoryType getRepoType() {
        return RepositoryType.TARBZ2;
      }
    };
    BufferedReader bufferedReader = new BufferedReader(new FileReader(new File(
        "testData/index2.txt")));
    IndexReader ir = new IndexReader(bufferedReader);
    List<ArchiveArtifact> artifacts = ir.parse();
    repo.setArtifacts(artifacts);
    RepoProvider provider = injector.getInstance(RepoProvider.class);
    provider.addRepo(RepositoryType.TARBZ2, "http://localhost", repo);
  }
View Full Code Here

TOP

Related Classes of com.tuenti.supernanny.repo.ArchiveRepo

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.