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