IndexerTest.java revision 1372
0N/A * The contents of this file are subject to the terms of the 137N/A * Common Development and Distribution License (the "License"). 0N/A * You may not use this file except in compliance with the License. 0N/A * language governing permissions and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 0N/A * information: Portions Copyright [yyyy] [name of copyright owner] 137N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * @author Trond Norbye 0N/A * Test of doIndexerExecution method, of class Indexer. 0N/A Indexer.
getInstance().
prepareIndexer(
env,
true,
true,
"/c",
null,
false,
false,
false,
null,
null,
new ArrayList<
String>(),
false);
0N/A * Test that rescanning for projects does not erase customization of 0N/A * existing projects. Bug #16006. 0N/A // Generate one project that will be found in source.zip, and set 0N/A // some properties that we can verify after the rescan. 137N/A // Generate one project that will not be found in source.zip, and that 0N/A // should not be in the list of projects after the rescan. 0N/A // Make the runtime environment aware of these two projects. 0N/A // Do a rescan of the projects, and only that (we don't care about 0N/A // the other aspects of indexing in this test case). 0N/A false,
// don't search for repositories 0N/A true,
// scan and add projects 0N/A false,
// don't refresh history 0N/A false,
// don't list files 0N/A false,
// don't create dictionary 0N/A null,
// subFiles - not needed since we don't list files 0N/A null,
// repositories - not needed when not refreshing history 0N/A false);
// don't list repos 0N/A // p2 should not be in the project list anymore 0N/A // The properties of p1 should be preserved 460N/A * Test of doIndexerExecution method, of class Indexer. 0N/A System.
out.
println(
"Skipping test. Repository for rfe2575 not found or could not find a ctags or an sccs I could use in path.");
System.
out.
println(
"Skipping test. Could not find a ctags I could use in path.");
System.
out.
println(
"Skipping test. Could not find a ctags I could use in path.");
System.
out.
println(
"Skipping test for bug 11896. Could not find a mkfifo in path.");