From 85cec2dd7ae435d84bad0721c6fd79e9c644c275 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Wed, 28 Jul 2021 08:49:52 +0300 Subject: Improve annotations rendering (#2045) omit parentheses if there are no parameters add quotes for string literals into annotations --- .../org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/javadoc/src/test/kotlin') diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt index 0b1eab7f..19ef6ae7 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt @@ -149,13 +149,13 @@ internal class JavadocClasslikeTemplateMapTest : AbstractJavadocTemplateMapTest( val map = allPagesOfType().first { it.name == "TestClass" }.templateMap assertEquals("TestClass", map["name"]) val signature = assertIsInstance>(map["signature"]) - assertEquals("@Author(name = Benjamin Franklin)", signature["annotations"]) + assertEquals("@Author(name = \"Benjamin Franklin\")", signature["annotations"]) val methods = assertIsInstance>(map["methods"]) val ownMethods = assertIsInstance>(methods["own"]) val method = assertIsInstance>(ownMethods.single()) val methodSignature = assertIsInstance>(method["signature"]) - assertEquals("@Author(name = Franklin D. Roosevelt)", methodSignature["annotations"]) + assertEquals("@Author(name = \"Franklin D. Roosevelt\")", methodSignature["annotations"]) } } -- cgit