use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class IndexDatabaseTest method setUpClass.
@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());
Indexer indexer = Indexer.getInstance();
indexer.prepareIndexer(env, true, true, "/c", null, false, false, false, null, null, new ArrayList<String>(), false);
indexer.doIndexerExecution(true, 1, null, null);
}
use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class IndexerTest method setUp.
@Before
public void setUp() throws IOException {
repository = new TestRepository();
repository.create(IndexerTest.class.getResourceAsStream("source.zip"));
}
Aggregations