/** * Build a new test setup with a new repository. If * <code>createWC</code> is <code>true</code>, create a * corresponding working copy and expected working copy * layout. * * @param createWC Whether to create the working copy on disk, * and initialize the expected working copy layout. * @param loadRepos Whether to load the sample repository, or * leave it with no initial revisions * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected OneTest(boolean createWC, boolean loadRepos) throws SubversionException, IOException { this.testName = testBaseName + ++testCounter; this.wc = greekWC.copy(); this.repository = createInitialRepository(loadRepos); this.url = makeReposUrl(repository); if (createWC) { workingCopy = createInitialWorkingCopy(repository); } }
/** * Build a new test setup with a new repository. If * <code>createWC</code> is <code>true</code>, create a * corresponding working copy and expected working copy * layout. * * @param createWC Whether to create the working copy on disk, * and initialize the expected working copy layout. * @throws SubversionException If there is a problem * creating or loading the repository. * @throws IOException If there is a problem finding the * dump file. */ protected OneTest(boolean createWC) throws SubversionException, IOException { this.testName = testBaseName + ++testCounter; this.wc = greekWC.copy(); this.repository = createInitialRepository(); this.url = makeReposUrl(repository); if (createWC) { workingCopy = createInitialWorkingCopy(repository); } }