IndexerTest.java revision 1023
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
*
* @author Trond Norbye
*/
public class IndexerTest {
public IndexerTest() {
}
public static void setUpClass() throws Exception {
assertTrue("No point in running indexer tests without valid ctags",
}
public static void tearDownClass() throws Exception {
}
public void setUp() throws IOException {
repository = new TestRepository();
}
public void tearDown() {
}
/**
* Test of doIndexerExecution method, of class Indexer.
*/
@Test
public void testIndexGeneration() throws Exception {
if (env.validateExuberantCtags()) {
env.setVerbose(true);
} else {
}
}
/**
* Test of doIndexerExecution method, of class Indexer.
*/
@Test
public void testMain() throws IOException {
if (env.validateExuberantCtags()) {
String[] argv = { "-S", "-P", "-H", "-Q", "off", "-s", repository.getSourceRoot(), "-d", repository.getDataRoot(), "-v"};
} else {
}
}
private class MyIndexChangeListener implements org.opensolaris.opengrok.index.IndexChangedListener {
}
}
}
@Test
public void testRFE2575() throws Exception {
Repository r = null;
break;
}
}
listener = new MyIndexChangeListener();
} else {
System.out.println("Skipping test. Repository for rfe2575 not found or could not find a ctags or an sccs I could use in path.");
}
}
@Test
public void testXref() throws IOException {
continue;
}
try {
} catch (UnsupportedOperationException exp) {
// ignore
}
}
}
@Test
public void testBug3430() throws Exception {
if (env.validateExuberantCtags()) {
} else {
}
}
@Test
public void testBug11896() throws Exception {
boolean test = true;
test = false;
}
if (test) {
if (env.validateExuberantCtags()) {
} else {
}
} else {
}
}
}