use of org.opengrok.indexer.condition.EnabledForRepository in project OpenGrok by OpenGrok.
the class HistoryGuruTest method testAddSubRepositoryNotNestable.
@Test
@EnabledForRepository(CVS)
void testAddSubRepositoryNotNestable() {
HistoryGuru instance = HistoryGuru.getInstance();
// Check out CVS underneath a Git repository.
File cvsRoot = new File(repository.getSourceRoot(), "cvs_test");
assertTrue(cvsRoot.exists());
assertTrue(cvsRoot.isDirectory());
File gitRoot = new File(repository.getSourceRoot(), "git");
assertTrue(gitRoot.exists());
assertTrue(gitRoot.isDirectory());
CVSRepositoryTest.runCvsCommand(gitRoot, "-d", cvsRoot.toPath().resolve("cvsroot").toFile().getAbsolutePath(), "checkout", "cvsrepo");
Collection<RepositoryInfo> addedRepos = instance.addRepositories(Collections.singleton(Paths.get(repository.getSourceRoot(), "git").toString()));
assertEquals(1, addedRepos.size());
}
Aggregations