From 547357baa11fcfc7ddd9e69816419b820f2e9e3f Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 24 Jan 2019 15:48:42 +0300 Subject: [PATCH] Don't check intentions without categories for description presence --- .../kotlin/idea/intentions/IntentionDescriptionTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionDescriptionTest.kt b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionDescriptionTest.kt index 0187610095b..332473df066 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionDescriptionTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionDescriptionTest.kt @@ -38,7 +38,9 @@ class IntentionDescriptionTest : LightPlatformTestCase() { val shortName = className.substringAfterLast(".").replace("$", "") val directory = File("idea/resources/intentionDescriptions/$shortName") if (!directory.exists() || !directory.isDirectory) { - errors.append("No description directory for intention '").append(className).append("'\n") + if (tool.categories != null) { + errors.append("No description directory for intention '").append(className).append("'\n") + } } else { val necessaryNames = when { shortName.isMavenIntentionName() -> necessaryMavenNames @@ -53,6 +55,7 @@ class IntentionDescriptionTest : LightPlatformTestCase() { } } } + UsefulTestCase.assertEmpty(errors.toString()) }