View | Details | Raw Unified | Return to bug 293697 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (-2 / +14 lines)
Lines 10919-10928 Link Here
10919
 * atleast on the restart of the workspace. 
10919
 * atleast on the restart of the workspace. 
10920
 * If any javaLikeNames are deleted, this ensures that the index file is regenerated.
10920
 * If any javaLikeNames are deleted, this ensures that the index file is regenerated.
10921
 */
10921
 */
10922
// TODO (Satyam) Enable when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=293697 is fixed
10922
public void testBug286379c() throws CoreException {
10923
public void _testBug286379c() throws CoreException {
10924
	IContentType javaContentType = Platform.getContentTypeManager().getContentType(JavaCore.JAVA_SOURCE_CONTENT_TYPE);
10923
	IContentType javaContentType = Platform.getContentTypeManager().getContentType(JavaCore.JAVA_SOURCE_CONTENT_TYPE);
10925
	try {
10924
	try {
10925
		// Create resource and wait for the refresh as we do not want the
10926
		// indexing to be triggered by the resource change event after the
10927
		// Java Source content type will be added
10926
		IJavaProject proj = createJavaProject("P");
10928
		IJavaProject proj = createJavaProject("P");
10927
		IPath projPath = proj.getPath();
10929
		IPath projPath = proj.getPath();
10928
		createFolder("/P/p");			
10930
		createFolder("/P/p");			
Lines 10932-10937 Link Here
10932
			"public class Xtorem {\n" +
10934
			"public class Xtorem {\n" +
10933
			"}"
10935
			"}"
10934
		);
10936
		);
10937
		refresh(proj);
10938
		
10939
		// Wait to be sure that indexes are ready as we want to see whether
10940
		// they'll be updated or not while adding a Java Source content type
10935
		waitUntilIndexesReady();
10941
		waitUntilIndexesReady();
10936
		
10942
		
10937
		assertNotNull("We should have got a Java Source a content type!", javaContentType);
10943
		assertNotNull("We should have got a Java Source a content type!", javaContentType);
Lines 10973-10978 Link Here
10973
		
10979
		
10974
		// Restarting should update the index file to remove the references of any .torem files
10980
		// Restarting should update the index file to remove the references of any .torem files
10975
		simulateExit();		
10981
		simulateExit();		
10982
		try {
10983
			Thread.sleep(1500); // wait more than one second to be sure that modified time will be different
10984
		}
10985
		catch (InterruptedException ie) {
10986
			// skip
10987
		}
10976
		simulateRestart();		
10988
		simulateRestart();		
10977
		
10989
		
10978
		waitUntilIndexesReady();
10990
		waitUntilIndexesReady();

Return to bug 293697