aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/javadoc
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-02 16:05:47 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-02 16:05:47 +0300
commit40e81322426a925f3fe88e867a8a0e9858847835 (patch)
tree49c7ce2f48eac28dddc226edee663bd9f081e516 /core/src/test/kotlin/javadoc
parent225a4993835b3c5c798e9cecd17cbb31da5d9ee8 (diff)
downloaddokka-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.kt11
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,