diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-02 16:05:47 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-02 16:05:47 +0300 |
commit | 40e81322426a925f3fe88e867a8a0e9858847835 (patch) | |
tree | 49c7ce2f48eac28dddc226edee663bd9f081e516 /core/src/test/kotlin/javadoc | |
parent | 225a4993835b3c5c798e9cecd17cbb31da5d9ee8 (diff) | |
download | dokka-40e81322426a925f3fe88e867a8a0e9858847835.tar.gz dokka-40e81322426a925f3fe88e867a8a0e9858847835.tar.bz2 dokka-40e81322426a925f3fe88e867a8a0e9858847835.zip |
Fix for GH #98 : Added tests, altered fix code for corner cases
Diffstat (limited to 'core/src/test/kotlin/javadoc')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index 6c572c10..41d22b47 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -96,6 +96,17 @@ class JavadocTest { } } + @Test fun testSuppress() { + verifyJavadoc("testdata/javadoc/suppress.kt", withKotlinRuntime = true) { doc -> + assertNull(doc.classNamed("Some")) + assertNull(doc.classNamed("SomeAgain")) + assertNull(doc.classNamed("Interface")) + val classSame = doc.classNamed("Same")!! + assertTrue(classSame.fields().isEmpty()) + assertTrue(classSame.methods().isEmpty()) + } + } + private fun verifyJavadoc(name: String, withJdk: Boolean = false, withKotlinRuntime: Boolean = false, |