/** * Create the repository for the beginning of the test. * Assumes that {@link #testName} has been set. * * @return the repository directory * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected File createInitialRepository() throws SubversionException, IOException { // build a clean repository directory File repos = new File(repositories, this.testName); removeDirOrFile(repos); // create and load the repository from the default repository dump admin.create(repos.getAbsolutePath(), true, false, conf.getAbsolutePath(), fsType); admin.load(repos.getAbsolutePath(), new FileInputer(greekDump), new IgnoreOutputer(), false, false, null); return repos; }
/** * Create the repository for the beginning of the test. * Assumes that {@link #testName} has been set. * * @return the repository directory * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected File createInitialRepository(boolean loadGreek) throws SubversionException, IOException { // build a clean repository directory File repos = new File(repositories, this.testName); removeDirOrFile(repos); // create and load the repository from the default repository dump admin.create(repos.getAbsolutePath(), true, false, conf.getAbsolutePath(), fsType); if (loadGreek) { admin.load(repos.getAbsolutePath(), new FileInputer(greekDump), new IgnoreOutputer(), false, false, null); } return repos; }
/** * Standard initialization of one test * @throws Exception */ protected void setUp() throws Exception { super.setUp(); createDirectories(); // create and configure the needed subversion objects admin = new SVNAdmin(); initClient(); // build and dump the sample repository File greekFiles = buildGreekFiles(); greekRepos = new File(localTmp, "repos"); greekDump = new File(localTmp, "greek_dump"); admin.create(greekRepos.getAbsolutePath(), true,false, null, this.fsType); addExpectedCommitItem(greekFiles.getAbsolutePath(), null, null, NodeKind.none, CommitItemStateFlags.Add); client.doImport(greekFiles.getAbsolutePath(), makeReposUrl(greekRepos), null, true ); admin.dump(greekRepos.getAbsolutePath(), new FileOutputer(greekDump), new IgnoreOutputer(), null, null, false); }
/** * Standard initialization of one test * @throws Exception */ protected void setUp() throws Exception { super.setUp(); createDirectories(); // create and configure the needed subversion objects admin = new SVNAdmin(); initClient(); // build and dump the sample repository File greekFiles = buildGreekFiles(); greekRepos = new File(localTmp, "repos"); greekDump = new File(localTmp, "greek_dump"); admin.create(greekRepos.getAbsolutePath(), true,false, null, this.fsType); addExpectedCommitItem(greekFiles.getAbsolutePath(), null, null, NodeKind.none, CommitItemStateFlags.Add); client.doImport(greekFiles.getAbsolutePath(), makeReposUrl(greekRepos), null, true ); admin.dump(greekRepos.getAbsolutePath(), new FileOutputer(greekDump), new IgnoreOutputer(), null, null, false); }