From 40e81322426a925f3fe88e867a8a0e9858847835 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Wed, 2 Nov 2016 16:05:47 +0300 Subject: Fix for GH #98 : Added tests, altered fix code for corner cases --- core/src/test/kotlin/javadoc/JavadocTest.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core/src/test/kotlin/javadoc/JavadocTest.kt') 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, -- cgit