From 275cdd13452fbd64bb0e5bb4c443c0df8b616078 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Tue, 6 Dec 2016 14:47:32 +0100 Subject: [PATCH] ensure getFamilyName is not empty (in tests) --- .../codeInsight/daemon/quickFix/LightQuickFixTestCase.java | 5 +++++ 1 file changed, 5 insertions(+) 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 7bb666fbcaee..d1e33ead32ab 100644 --- a/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java +++ b/java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java @@ -106,6 +106,11 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase } String expectedFilePath = ObjectUtils.notNull(quickFix.getBasePath(), "") + "/" + AFTER_PREFIX + testName; quickFix.checkResultByFile("In file :" + expectedFilePath, expectedFilePath, false); + + String familyName = action.getFamilyName(); + if (StringUtil.isEmptyOrSpaces(familyName)) { + fail("Action '" + text + "' provides empty family name which means that user would see action with empty presentable text in Inspection Results"); + } } }