use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class TroffAnalyzerTest method setUpBeforeClass.
/**
* Test method for {@link org.opensolaris.opengrok.analysis.document
* .TroffAnalyzer#TroffAnalyzer(org.opensolaris.opengrok.analysis.FileAnalyzerFactory)}.
*
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception {
factory = new TroffAnalyzerFactory();
assertNotNull(factory);
analyzer = new TroffAnalyzer(factory);
assertNotNull(analyzer);
repository = new TestRepository();
repository.create(TroffAnalyzerTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
String file = System.getProperty("opengrok.test.troff.doc", repository.getSourceRoot() + "/document/foobar.1");
File f = new File(file);
if (!(f.canRead() && f.isFile())) {
fail("troff testfile " + f + " not found");
}
CharArrayWriter w = new CharArrayWriter((int) f.length());
Util.dump(w, f, false);
content = w.toString();
}
use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class JFlexXrefTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
ctags = new Ctags();
ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
repository = new TestRepository();
repository.create(JFlexXrefTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class PascalAnalyzerFactoryTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
ctags = new Ctags();
ctags.setBinary(RuntimeEnvironment.getInstance().getCtags());
repository = new TestRepository();
repository.create(PascalAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class SearchHelperTest method setUp.
@Before
public void setUp() throws IOException {
repository = new TestRepository();
repository.create(IndexerTest.class.getResourceAsStream("source.zip"));
env = RuntimeEnvironment.getInstance();
env.setSourceRoot(repository.getSourceRoot());
env.setDataRoot(repository.getDataRoot());
env.setVerbose(true);
}
use of org.opensolaris.opengrok.util.TestRepository in project OpenGrok by OpenGrok.
the class IgnoredNamesTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
repository = new TestRepository();
repository.create(CAnalyzerFactoryTest.class.getResourceAsStream("/org/opensolaris/opengrok/index/source.zip"));
}
Aggregations