From 50270293e30d932bf57f07065cf391a41eaa3db0 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 14 Aug 2018 12:12:16 +0200 Subject: [PATCH] Minor, improve assertion message in test --- .../jetbrains/kotlin/asJava/KtLightAnnotationTest.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/idea/tests/org/jetbrains/kotlin/asJava/KtLightAnnotationTest.kt b/idea/tests/org/jetbrains/kotlin/asJava/KtLightAnnotationTest.kt index bcc9856d508..72ffefeb671 100644 --- a/idea/tests/org/jetbrains/kotlin/asJava/KtLightAnnotationTest.kt +++ b/idea/tests/org/jetbrains/kotlin/asJava/KtLightAnnotationTest.kt @@ -686,10 +686,12 @@ class KtLightAnnotationTest : KotlinLightCodeInsightFixtureTestCase() { } private fun PsiModifierListOwner.expectAnnotations(number: Int): Array = - this.modifierList!!.annotations.apply { - TestCase.assertEquals("expected one annotation, found ${this.joinToString(", ") { it.qualifiedName ?: "unknown" }}", - number, size) - } + this.modifierList!!.annotations.apply { + assertEquals( + "expected $number annotation(s), found [${this.joinToString(", ") { it.qualifiedName ?: "unknown" }}]", + number, size + ) + } private fun configureKotlinVersion(version: String) { WriteAction.run {