ensure getFamilyName is not empty (in tests)

This commit is contained in:
Anna.Kozlova
2016-12-06 15:06:37 +01:00
parent a3e271fd72
commit 275cdd1345
@@ -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");
}
}
}