load path fixed

This commit is contained in:
Roman Chernyatchik
2009-08-19 20:39:09 +04:00
parent e77c7bea12
commit 513fcee7aa
@@ -331,14 +331,18 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
final Ref<Long> duration = new Ref<Long>();
new WriteCommandAction.Simple(myProjectFixture.getProject()) {
protected void run() throws Exception {
myFile = myPsiManager.findFile(file);
myEditor = createEditor(file);
openFileInEditor(file);
collectAndCheckHighlightings(checkWarnings, checkInfos, checkWeakWarnings, duration);
}
}.execute().throwException();
return duration.get().longValue();
}
public void openFileInEditor(@NotNull final VirtualFile file) {
myFile = myPsiManager.findFile(file);
myEditor = createEditor(file);
}
public void testInspection(String testDir, InspectionTool tool) throws Exception {
VirtualFile sourceDir = copyDirectoryToProject(new File(testDir, "src").getPath(), "src");
AnalysisScope scope = new AnalysisScope(getPsiManager().findDirectory(sourceDir));