diff options
author | KrystianUjma <kujma@virtuslab.com> | 2019-05-23 16:26:02 +0200 |
---|---|---|
committer | KrystianUjma <kujma@virtuslab.com> | 2019-05-23 16:26:02 +0200 |
commit | 9d7f9fec41d33a636b19125b582c2aeb24a8b6e5 (patch) | |
tree | d1ecf0f4f34bbf4f1015d48c81f5fa11665d30d2 /core/src/test/kotlin/javadoc | |
parent | fd6c34d92b7409d3aedd9416c7b06f9c48fe2631 (diff) | |
download | dokka-9d7f9fec41d33a636b19125b582c2aeb24a8b6e5.tar.gz dokka-9d7f9fec41d33a636b19125b582c2aeb24a8b6e5.tar.bz2 dokka-9d7f9fec41d33a636b19125b582c2aeb24a8b6e5.zip |
#465 - fix javadoc parameters generation for java classes
Diffstat (limited to 'core/src/test/kotlin/javadoc')
-rw-r--r-- | core/src/test/kotlin/javadoc/JavadocTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/kotlin/javadoc/JavadocTest.kt b/core/src/test/kotlin/javadoc/JavadocTest.kt index d4f82571..64ada1d5 100644 --- a/core/src/test/kotlin/javadoc/JavadocTest.kt +++ b/core/src/test/kotlin/javadoc/JavadocTest.kt @@ -304,6 +304,14 @@ class JavadocTest { } } + @Test + fun functionParameters() { + verifyJavadoc("testdata/javadoc/functionParameters.java") { doc -> + val tags = doc.classNamed("bar.Foo")!!.methods().first().paramTags() + assertEquals((tags.first() as ParamTagAdapter).content.size, 1) + assertEquals((tags[1] as ParamTagAdapter).content.size, 1) + } + } private fun verifyJavadoc(name: String, modelConfig: ModelConfig = ModelConfig(), |