Search in sources :

Example 1 with TestRepository

use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.

the class JavaAnalyzerFactoryTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    ctags = new Ctags();
    ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
    repository = new TestRepository();
    repository.create(JavaAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Also used : TestRepository(org.opensolaris.opengrok.util.TestRepository) Ctags(org.opensolaris.opengrok.analysis.Ctags) BeforeClass(org.junit.BeforeClass)

Example 2 with TestRepository

use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.

the class CAnalyzerFactoryTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    ctags = new Ctags();
    ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
    repository = new TestRepository();
    repository.create(CAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Also used : TestRepository(org.opensolaris.opengrok.util.TestRepository) Ctags(org.opensolaris.opengrok.analysis.Ctags) BeforeClass(org.junit.BeforeClass)

Example 3 with TestRepository

use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.

the class CxxAnalyzerFactoryTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    ctags = new Ctags();
    ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
    repository = new TestRepository();
    repository.create(CxxAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Also used : TestRepository(org.opensolaris.opengrok.util.TestRepository) Ctags(org.opensolaris.opengrok.analysis.Ctags) BeforeClass(org.junit.BeforeClass)

Example 4 with TestRepository

use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.

the class ClojureAnalyzerFactoryTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    ctags = new Ctags();
    ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
    repository = new TestRepository();
    repository.create(ClojureAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Also used : TestRepository(org.opensolaris.opengrok.util.TestRepository) Ctags(org.opensolaris.opengrok.analysis.Ctags) BeforeClass(org.junit.BeforeClass)

Example 5 with TestRepository

use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.

the class CSharpAnalyzerFactoryTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    ctags = new Ctags();
    ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
    repository = new TestRepository();
    repository.create(CSharpAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Also used : TestRepository(org.opensolaris.opengrok.util.TestRepository) Ctags(org.opensolaris.opengrok.analysis.Ctags) BeforeClass(org.junit.BeforeClass)

Aggregations

TestRepository (org.opensolaris.opengrok.util.TestRepository)22 BeforeClass (org.junit.BeforeClass)17 Ctags (org.opensolaris.opengrok.analysis.Ctags)6 File (java.io.File)4 Before (org.junit.Before)4 RuntimeEnvironment (org.opensolaris.opengrok.configuration.RuntimeEnvironment)3 HistoryGuru (org.opensolaris.opengrok.history.HistoryGuru)3 IndexerTest (org.opensolaris.opengrok.index.IndexerTest)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 CharArrayWriter (java.io.CharArrayWriter)1 PrintStream (java.io.PrintStream)1 ArrayList (java.util.ArrayList)1 CAnalyzerFactoryTest (org.opensolaris.opengrok.analysis.c.CAnalyzerFactoryTest)1