diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2019-02-25 19:45:09 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2019-02-25 19:45:59 +0300 |
commit | ff25593e8af941c624f3bee8bc031ae53c3700d5 (patch) | |
tree | 4029a632258f14f901da46f51c4f7ff8e4cd4e1e /core/src/test/kotlin/javadoc/JavadocTest.kt | |
parent | a2104d1e24a452cbfd2a76c204fc58475aa70057 (diff) | |
download | dokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.tar.gz dokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.tar.bz2 dokka-ff25593e8af941c624f3bee8bc031ae53c3700d5.zip |
Fix problem on consumer side, improve test (#420)
Diffstat (limited to 'core/src/test/kotlin/javadoc/JavadocTest.kt')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index 7f1b44da..04f8b920 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -237,8 +237,8 @@ class JavadocTest { verifyJavadoc("testdata/javadoc/deprecated.java") { doc -> val classDoc = doc.classNamed("bar.Banana")!! - classDoc.methods().forEach { - assertNotNull((it as? DocumentationNodeAdapter)?.node?.deprecation) + classDoc.methods().forEach { method -> + assertTrue(method.tags().any { it.kind() == "deprecated" }) } } } |