blob: 426afcbc7ad0dba8b626c07930b3ff2e7131b47e [file] [log] [blame]
package com.intellij.util.indexing;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
/**
* @author Dmitry Avdeev
* Date: 5/23/13
*/
public class FileBasedIndexTest extends LightCodeInsightFixtureTestCase {
public void testSurviveOnFileTypeChange() throws Exception {
myFixture.configureByText("Foo.java", "class Foo { String bar; }");
myFixture.testHighlighting();
FileTypeIndexTest.addAndRemoveFileType();
myFixture.configureByText("Bar.java", "class Bar { String bar; }");
myFixture.testHighlighting();
}
}