Search in sources :

Example 1 with SubversionRepository

use of org.opensolaris.opengrok.history.SubversionRepository in project OpenGrok by OpenGrok.

the class ProjectMessageTest method setUp.

@Before
public void setUp() throws IOException {
    Assume.assumeTrue(new MercurialRepository().isWorking());
    Assume.assumeTrue(new SubversionRepository().isWorking());
    Assume.assumeTrue(new GitRepository().isWorking());
    repository = new TestRepository();
    repository.create(HistoryGuru.class.getResourceAsStream("repositories.zip"));
    env = RuntimeEnvironment.getInstance();
    env.removeAllMessages();
    env.setSourceRoot(repository.getSourceRoot());
    env.setDataRoot(repository.getDataRoot());
    env.setProjectsEnabled(true);
    RepositoryFactory.initializeIgnoredNames(env);
}
Also used : MercurialRepository(org.opensolaris.opengrok.history.MercurialRepository) GitRepository(org.opensolaris.opengrok.history.GitRepository) TestRepository(org.opensolaris.opengrok.util.TestRepository) SubversionRepository(org.opensolaris.opengrok.history.SubversionRepository) HistoryGuru(org.opensolaris.opengrok.history.HistoryGuru) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 GitRepository (org.opensolaris.opengrok.history.GitRepository)1 HistoryGuru (org.opensolaris.opengrok.history.HistoryGuru)1 MercurialRepository (org.opensolaris.opengrok.history.MercurialRepository)1 SubversionRepository (org.opensolaris.opengrok.history.SubversionRepository)1 TestRepository (org.opensolaris.opengrok.util.TestRepository)1