diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2019-02-05 16:05:15 +0100 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2019-02-25 19:45:58 +0300 |
commit | a2104d1e24a452cbfd2a76c204fc58475aa70057 (patch) | |
tree | 414a18a39cfd2436de962e594076a7e0f282581e /core/src/test | |
parent | 5b451ab6abf60e15c8044daebc90c3a46c21c4fb (diff) | |
download | dokka-a2104d1e24a452cbfd2a76c204fc58475aa70057.tar.gz dokka-a2104d1e24a452cbfd2a76c204fc58475aa70057.tar.bz2 dokka-a2104d1e24a452cbfd2a76c204fc58475aa70057.zip |
Fix @deprecated visibility in JavaDoc (#420)
#343 Fixed
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index 9ca668d8..7f1b44da 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -233,6 +233,16 @@ class JavadocTest { } } + @Test fun shouldHaveAllFunctionMarkedAsDeprecated() { + verifyJavadoc("testdata/javadoc/deprecated.java") { doc -> + val classDoc = doc.classNamed("bar.Banana")!! + + classDoc.methods().forEach { + assertNotNull((it as? DocumentationNodeAdapter)?.node?.deprecation) + } + } + } + private fun verifyJavadoc(name: String, withJdk: Boolean = false, withKotlinRuntime: Boolean = false, |