mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
load path fixed
This commit is contained in:
+6
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user