use of org.opengrok.indexer.util.TestRepository in project OpenGrok by OpenGrok.
the class GitRepositoryOctopusTest method setUpClass.
@BeforeAll
public static void setUpClass() throws Exception {
repository = new TestRepository();
repository.create(GitRepositoryOctopusTest.class.getResourceAsStream("/history/git-octopus.zip"));
RuntimeEnvironment.getInstance().setMergeCommitsEnabled(true);
}
use of org.opengrok.indexer.util.TestRepository in project OpenGrok by OpenGrok.
the class BitKeeperRepositoryTest method setUp.
@BeforeEach
public void setUp() {
try {
testRepo = new TestRepository();
testRepo.create(getClass().getResource("/repositories"));
final File root = new File(testRepo.getSourceRoot(), "bitkeeper");
bkRepo = (BitKeeperRepository) RepositoryFactory.getRepository(root);
bkFiles = Arrays.asList(root.list(new BitKeeperFilenameFilter()));
} catch (final Exception e) {
testRepo = null;
bkRepo = null;
bkFiles = null;
}
}
use of org.opengrok.indexer.util.TestRepository in project OpenGrok by OpenGrok.
the class FileHistoryCacheTest method setUp.
/**
* Set up the test environment with repositories and a cache instance.
*/
@BeforeEach
public void setUp() throws Exception {
repositories = new TestRepository();
repositories.create(getClass().getResource("/repositories"));
cache = new FileHistoryCache();
cache.initialize();
savedFetchHistoryWhenNotInCache = env.isFetchHistoryWhenNotInCache();
savedIsHandleHistoryOfRenamedFiles = env.isHandleHistoryOfRenamedFiles();
savedIsTagsEnabled = env.isTagsEnabled();
}
use of org.opengrok.indexer.util.TestRepository in project OpenGrok by OpenGrok.
the class BoundaryChangesetsTest method setUp.
@BeforeEach
public void setUp() throws Exception {
repositories = new TestRepository();
repositories.create(getClass().getResource("/repositories"));
File reposRoot = new File(repositories.getSourceRoot(), "git");
Repository repo = RepositoryFactory.getRepository(reposRoot);
assertNotNull(repo);
assertTrue(repo instanceof RepositoryWithPerPartesHistory);
gitRepository = (GitRepository) repo;
}
use of org.opengrok.indexer.util.TestRepository in project OpenGrok by OpenGrok.
the class FileHistoryCacheOctopusTest method setUp.
@BeforeEach
public void setUp() throws Exception {
RuntimeEnvironment.getInstance().setMergeCommitsEnabled(true);
repositories = new TestRepository();
repositories.create(getClass().getResourceAsStream("/history/git-octopus.zip"));
cache = new FileHistoryCache();
cache.initialize();
}
Aggregations