diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 18:02:00 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 18:02:00 +0100 |
commit | fdd2d9a25661b0faba687a168855138dc8ee30fa (patch) | |
tree | 28eaafe798e94c0dee18c3a1b2db36f4270b9908 /test/src | |
parent | 6620764c5f18c87933369131602b24bd2fa490e8 (diff) | |
download | dokka-fdd2d9a25661b0faba687a168855138dc8ee30fa.tar.gz dokka-fdd2d9a25661b0faba687a168855138dc8ee30fa.tar.bz2 dokka-fdd2d9a25661b0faba687a168855138dc8ee30fa.zip |
links to supertypes in Java
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/TestAPI.kt | 2 | ||||
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index 33688053..7c6a2e73 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -48,7 +48,7 @@ public fun verifyOutput(path: String, outputExtension: String, outputGenerator: verifyModel(path) { val output = StringBuilder() outputGenerator(it, output) - val expectedOutput = File(path.replace(".kt", outputExtension)).readText() + val expectedOutput = File(path.replace(".kt", outputExtension).replace(".java", outputExtension)).readText() assertEqualsIgnoringSeparators(expectedOutput, output.toString()) } } diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt index 9d4d30da..f6e0a2f3 100644 --- a/test/src/format/HtmlFormatTest.kt +++ b/test/src/format/HtmlFormatTest.kt @@ -93,4 +93,10 @@ public class HtmlFormatTest { htmlService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun javaSupertypeLink() { + verifyOutput("test/data/format/javaSupertype.java", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members.single { it.name == "C"}.members.filter { it.name == "Bar"} ) + } + } } |