diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java index 5a293ca07d40..50adde49fbdb 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java @@ -272,7 +272,7 @@ public interface CodeInsightTestFixture extends IdeaProjectTestFixture { void testRename(String fileAfter, String newName) throws Exception; - Collection testFindUsages(@NonNls String... fileNames) throws Exception; + Collection testFindUsages(@TestDataFile @NonNls String... fileNames); Collection findUsages(final PsiElement to) throws Exception; diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java index e428dba47887..52f824c3d4cd 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java @@ -583,7 +583,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig actionManager.getActionHandler(actionId).execute(getEditor(), dataContext); } - public Collection testFindUsages(@NonNls final String... fileNames) throws Exception { + public Collection testFindUsages(@NonNls final String... fileNames) { assertInitialized(); configureByFiles(fileNames); final PsiElement targetElement = TargetElementUtilBase