mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-70123 Test Assistant: Make it possible to work with test data for existing test classes that are not properly annotated
'checkCanceled()' is added
This commit is contained in:
+2
@@ -3,6 +3,7 @@ package com.intellij.testAssistant;
|
||||
import com.intellij.codeInsight.AnnotationUtil;
|
||||
import com.intellij.ide.util.gotoByName.GotoFileModel;
|
||||
import com.intellij.openapi.extensions.Extensions;
|
||||
import com.intellij.openapi.progress.ProgressManager;
|
||||
import com.intellij.openapi.roots.ProjectFileIndex;
|
||||
import com.intellij.openapi.roots.ProjectRootManager;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
@@ -221,6 +222,7 @@ public class TestDataGuessByExistingFilesUtil {
|
||||
}
|
||||
Set<TestLocationDescriptor> descriptors = new HashSet<TestLocationDescriptor>();
|
||||
for (String name : gotoModel.getNames(false)) {
|
||||
ProgressManager.checkCanceled();
|
||||
boolean currentNameProcessed = false;
|
||||
for (Trinity<Matcher, String, String> trinity : input) {
|
||||
if (!trinity.first.matches(name)) {
|
||||
|
||||
Reference in New Issue
Block a user