aboutsummaryrefslogtreecommitdiff
path: root/test/src/format/HtmlFormatTest.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-05-27 19:26:13 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-05-27 19:26:13 +0200
commitbc0654e29891fa5e93b8d122518179779aae7e6a (patch)
tree60dd25e65d1ef19b315c99c06072244f4c37700d /test/src/format/HtmlFormatTest.kt
parent70a70ca9dad31477877251b271a329d048f7873f (diff)
downloaddokka-bc0654e29891fa5e93b8d122518179779aae7e6a.tar.gz
dokka-bc0654e29891fa5e93b8d122518179779aae7e6a.tar.bz2
dokka-bc0654e29891fa5e93b8d122518179779aae7e6a.zip
allow to explicitly specify the type of root for every input path
Diffstat (limited to 'test/src/format/HtmlFormatTest.kt')
-rw-r--r--test/src/format/HtmlFormatTest.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt
index 98b47f06..3d744b95 100644
--- a/test/src/format/HtmlFormatTest.kt
+++ b/test/src/format/HtmlFormatTest.kt
@@ -1,8 +1,12 @@
package org.jetbrains.dokka.tests
+import org.jetbrains.dokka.HtmlFormatService
import org.jetbrains.dokka.KotlinLanguageService
+import org.jetbrains.kotlin.cli.jvm.config.JavaSourceRoot
+import org.jetbrains.kotlin.config.ContentRoot
+import org.jetbrains.kotlin.config.KotlinSourceRoot
import org.junit.Test
-import org.jetbrains.dokka.HtmlFormatService
+import java.io.File
public class HtmlFormatTest {
private val htmlService = HtmlFormatService(InMemoryLocationService, KotlinLanguageService())
@@ -125,7 +129,9 @@ public class HtmlFormatTest {
}
Test fun crossLanguageKotlinExtendsJava() {
- verifyOutput("test/data/format/crossLanguage/kotlinExtendsJava", ".html") { model, output ->
+ verifyOutput(arrayOf(KotlinSourceRoot("test/data/format/crossLanguage/kotlinExtendsJava/Bar.kt"),
+ JavaSourceRoot(File("test/data/format/crossLanguage/kotlinExtendsJava"))),
+ ".html") { model, output ->
htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" })
}
}