From 916fafcf2735b2ed0f4a9d4ea5751104dd4e2c3c Mon Sep 17 00:00:00 2001 From: Sergey Vasiliev Date: Mon, 24 Aug 2009 12:40:10 +0400 Subject: [PATCH] removed old jam, rewrote seam jam components mode, added rename refactorings --- codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java | 4 ++-- .../com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java b/codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java index 0f9609340a..396a352802 100644 --- a/codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java +++ b/codeInsight/tests/com/intellij/codeInsight/CodeInsightTestCase.java @@ -88,7 +88,7 @@ public abstract class CodeInsightTestCase extends PsiTestCase { protected void configureByFile(@NonNls String filePath) throws Exception { configureByFile(filePath, null); } - protected void configureByFiles(String projectRoot,String... files) throws Exception { + protected VirtualFile configureByFiles(String projectRoot,String... files) throws Exception { final VirtualFile[] vFiles = new VirtualFile[files.length]; for (int i = 0; i < files.length; i++) { String path = files[i]; @@ -100,7 +100,7 @@ public abstract class CodeInsightTestCase extends PsiTestCase { File projectFile = projectRoot == null ? null : new File(getTestDataPath() + projectRoot); - configureByFiles(projectFile, vFiles); + return configureByFiles(projectFile, vFiles); } protected VirtualFile configureByFile(String filePath, String projectRoot) throws Exception { String fullPath = getTestDataPath() + filePath; diff --git a/codeInsight/tests/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java b/codeInsight/tests/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java index f53212b14c..feee43f556 100644 --- a/codeInsight/tests/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java +++ b/codeInsight/tests/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java @@ -15,8 +15,8 @@ import com.intellij.codeInspection.ex.InspectionProfileImpl; import com.intellij.codeInspection.ex.InspectionTool; import com.intellij.codeInspection.ex.LocalInspectionToolWrapper; import com.intellij.codeInspection.ex.ToolsImpl; -import com.intellij.ide.startup.impl.StartupManagerImpl; import com.intellij.ide.startup.StartupManagerEx; +import com.intellij.ide.startup.impl.StartupManagerImpl; import com.intellij.lang.annotation.HighlightSeverity; import com.intellij.openapi.Disposable; import com.intellij.openapi.editor.Document; @@ -248,6 +248,10 @@ public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase { return infos; } + public void allowTreeAccessForFile(final VirtualFile file) { + myAddedClasses.add(file); + } + protected Collection highlightErrors() { return filter(doHighlighting(), HighlightSeverity.ERROR); } -- 2.11.4.GIT