/*
* 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
*/
/*
*/
/**
*
* @author Trond Norbye
*/
public class IndexerTest {
@SuppressWarnings("javadoc")
public static void setUpClass() {
assertTrue("No point in running indexer tests without valid ctags",
}
@SuppressWarnings("javadoc")
repository = new TestRepository();
}
@SuppressWarnings("javadoc")
public void tearDown() {
}
/**
* Test of doIndexerExecution method, of class Indexer.
* @throws Exception
*/
@Test
if (RuntimeEnvironment.validateExuberantCtags()) {
cfg.setVerbose(true);
} else {
}
}
/**
* Test that rescanning for projects does not erase customization of
* existing projects. Bug #16006.
* @throws Exception
*/
@Test
// Generate one project that will be found in source.zip, and set
// some properties that we can verify after the rescan.
// Generate one project that will not be found in source.zip, and that
// should not be in the list of projects after the rescan.
// Make the runtime environment aware of these two projects.
// Do a rescan of the projects, and only that (we don't care about
// the other aspects of indexing in this test case).
false, // don't search for repositories
true, // scan and add projects
null, // no default project
null, // don't write config file
false, // don't refresh history
false, // don't list files
false, // don't create dictionary
null, // subFiles - not needed since we don't list files
null, // repositories - not needed when not refreshing history
false); // don't list repos
// p2 should not be in the project list anymore
for (Project p : newProjects) {
}
// p1 should be there
for (Project p : newProjects) {
newP1 = p;
break;
}
}
// The properties of p1 should be preserved
assertEquals("project description",
}
/**
* Test of doIndexerExecution method, of class Indexer.
*/
@Test
public void testMain() {
if (RuntimeEnvironment.validateExuberantCtags()) {
} else {
}
}
// dummy
}
}
// dummy
}
// dummy
}
// dummy
}
}
@SuppressWarnings("javadoc")
@Test
Repository r = null;
break;
}
}
{
cfg.setIndexVersionedFilesOnly(true);
listener = new MyIndexChangeListener();
cfg.setIndexVersionedFilesOnly(false);
} else {
+ " or could not find a ctags or an sccs I could use in path.");
}
}
@SuppressWarnings("javadoc")
@Test
continue;
}
try {
} catch (UnsupportedOperationException exp) {
// ignore
}
}
}
@SuppressWarnings("javadoc")
@Test
if (RuntimeEnvironment.validateExuberantCtags()) {
} else {
}
}
@SuppressWarnings("javadoc")
@Test
return;
}
if (RuntimeEnvironment.validateExuberantCtags()) {
} else {
}
}
}