diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-04 21:29:24 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-04 21:29:24 +0100 |
commit | efd848a7d5f5f241de4696d34a500d76f51b3cbc (patch) | |
tree | e45bfeef1786c9226efbfa353a2c0ab12b8b8dad /core/src/test/kotlin | |
parent | e0d00cba3613d092b6fa6af961378584c7c77b75 (diff) | |
download | dokka-efd848a7d5f5f241de4696d34a500d76f51b3cbc.tar.gz dokka-efd848a7d5f5f241de4696d34a500d76f51b3cbc.tar.bz2 dokka-efd848a7d5f5f241de4696d34a500d76f51b3cbc.zip |
separate groups for annotations and exceptions in the members list
Diffstat (limited to 'core/src/test/kotlin')
-rw-r--r-- | core/src/test/kotlin/format/MarkdownFormatTest.kt | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt index e2339707..5ec2b637 100644 --- a/core/src/test/kotlin/format/MarkdownFormatTest.kt +++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt @@ -26,9 +26,13 @@ public class MarkdownFormatTest { } @Test fun annotationClass() { - verifyOutput("testdata/format/annotationClass.kt", ".md") { model, output -> - markdownService.appendNodes(tempLocation, output, model.members.single().members) - } + verifyMarkdownNode("annotationClass", withKotlinRuntime = true) + verifyMarkdownPackage("annotationClass", withKotlinRuntime = true) + } + + @Test fun exceptionClass() { + verifyMarkdownNode("exceptionClass", withKotlinRuntime = true) + verifyMarkdownPackage("exceptionClass", withKotlinRuntime = true) } @Test fun annotationParams() { @@ -215,4 +219,16 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" }) } } + + private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) { + verifyOutput("testdata/format/$fileName.kt", ".package.md", withKotlinRuntime = withKotlinRuntime) { model, output -> + markdownService.appendNodes(tempLocation, output, model.members) + } + } + + private fun verifyMarkdownNode(fileName: String, withKotlinRuntime: Boolean = false) { + verifyOutput("testdata/format/$fileName.kt", ".md", withKotlinRuntime = withKotlinRuntime) { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members) + } + } } |