Examples of TestRepository


Examples of org.opensolaris.opengrok.util.TestRepository

    @BeforeClass
    public static void setUpClass() throws Exception {
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        assertTrue("No ctags available", env.validateExuberantCtags());

        repository = new TestRepository();
        repository.create(
                IndexDatabase.class.getResourceAsStream("source.zip"));

        env.setSourceRoot(repository.getSourceRoot());
        env.setDataRoot(repository.getDataRoot());
View Full Code Here

Examples of org.opensolaris.opengrok.util.TestRepository

     * Set up a test repository. Should be called by the tests that need it.
     * The test repository will be destroyed automatically when the test
     * finishes.
     */
    private void setUpTestRepository() throws IOException {
        repository = new TestRepository();
        repository.create(getClass().getResourceAsStream("repositories.zip"));
    }
View Full Code Here

Examples of org.watermint.sourcecolon.org.opensolaris.opengrok.util.TestRepository

    public static void setUpClass() throws Exception {
        skipTest = !RuntimeEnvironment.getInstance().validateExuberantCtags();
        if (!skipTest) {
            ctags = new Ctags();
            ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
            repository = new TestRepository();
            repository.create(CtagsTest.class.getResourceAsStream(
                    "/org/watermint/sourcecolon/org/opensolaris/opengrok/index/source.zip"));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.