From 869508f52ce95cceb3f87b28d69f62451dc11f34 Mon Sep 17 00:00:00 2001 From: irengrig Date: Wed, 6 Apr 2016 13:54:44 +0200 Subject: [PATCH] js: convert to arrow function intention. for WEB-16918 New refactorings (JS): convert to arrow function/convert to anonymous function NB intention is not suggested if this is used in function code (would require adding additional parameter to function) + mark es6-refactorings with marker interface --- .../daemon/quickFix/LightQuickFixTestCase.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java b/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java index 3b92d873e8ca..d7572b343209 100644 --- a/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java +++ b/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java @@ -210,6 +210,16 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase } public static void doAllTests(QuickFixTestCase testCase) { + final File[] files = getBeforeTestFiles(testCase); + + for (File file : files) { + final String testName = file.getName().substring(BEFORE_PREFIX.length()); + doTestFor(testName, testCase); + } + } + + @NotNull + public static File[] getBeforeTestFiles(QuickFixTestCase testCase) { assertNotNull("getBasePath() should not return null!", testCase.getBasePath()); final String testDirPath = testCase.getTestDataPath().replace(File.separatorChar, '/') + testCase.getBasePath(); @@ -224,11 +234,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase if (files == null || files.length == 0) { fail("Test files not found in " + testDirPath); } - - for (File file : files) { - final String testName = file.getName().substring(BEFORE_PREFIX.length()); - doTestFor(testName, testCase); - } + return files; } protected void doSingleTest(String fileSuffix) {