From ec637955575995011351b106d3a67194d21c4b15 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Mon, 14 Sep 2020 13:49:54 +0200 Subject: Introduce top-level DocTag --- plugins/base/src/test/kotlin/translators/JavadocParserTest.kt | 7 ++++--- plugins/base/src/test/kotlin/translators/utils.kt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/test/kotlin/translators') diff --git a/plugins/base/src/test/kotlin/translators/JavadocParserTest.kt b/plugins/base/src/test/kotlin/translators/JavadocParserTest.kt index 0cd0a151..762c2e27 100644 --- a/plugins/base/src/test/kotlin/translators/JavadocParserTest.kt +++ b/plugins/base/src/test/kotlin/translators/JavadocParserTest.kt @@ -5,6 +5,7 @@ import org.jetbrains.dokka.model.DModule import org.jetbrains.dokka.model.childrenOfType import org.jetbrains.dokka.model.doc.* import org.jetbrains.dokka.model.firstChildOfType +import org.jetbrains.dokka.model.firstMemberOfType import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest import org.junit.jupiter.api.Test import org.junit.jupiter.api.Assertions.* @@ -144,9 +145,9 @@ class JavadocParserTest : AbstractCoreTest() { performJavadocTest { module -> val authors = module.findClasslike().documentation.values.single().childrenOfType() assertEquals(3, authors.size) - assertEquals("James Gosling", authors[0].firstChildOfType().text()) - assertEquals("Arthur van Hoff", authors[1].firstChildOfType().text()) - assertEquals("Alan Liu", authors[2].firstChildOfType().text()) + assertEquals("James Gosling", authors[0].firstMemberOfType().text()) + assertEquals("Arthur van Hoff", authors[1].firstMemberOfType().text()) + assertEquals("Alan Liu", authors[2].firstMemberOfType().text()) } } diff --git a/plugins/base/src/test/kotlin/translators/utils.kt b/plugins/base/src/test/kotlin/translators/utils.kt index cbb6efa7..f0522ade 100644 --- a/plugins/base/src/test/kotlin/translators/utils.kt +++ b/plugins/base/src/test/kotlin/translators/utils.kt @@ -7,7 +7,7 @@ import java.util.NoSuchElementException fun DModule.documentationOf(className: String, functionName: String? = null): String = descriptionOf(className, functionName) - ?.firstChildOfType() + ?.firstMemberOfType() ?.body.orEmpty() fun DModule.descriptionOf(className: String, functionName: String? = null): Description? { -- cgit