aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/model/KotlinAsJavaTest.kt
diff options
context:
space:
mode:
authoraleksZubakov <aleks.zubakov@gmail.com>2018-07-12 15:37:18 +0300
committeraleksZubakov <aleks.zubakov@gmail.com>2018-07-12 15:37:18 +0300
commit960ea9ebb01f280c4966e139c1697f083e9d8965 (patch)
tree05bb14e7faf1b74a0abf89f69a73023b4373eefd /core/src/test/kotlin/model/KotlinAsJavaTest.kt
parent65b61e31b761071589e257381bea33557d932412 (diff)
downloaddokka-960ea9ebb01f280c4966e139c1697f083e9d8965.tar.gz
dokka-960ea9ebb01f280c4966e139c1697f083e9d8965.tar.bz2
dokka-960ea9ebb01f280c4966e139c1697f083e9d8965.zip
Test refactoring and split by different platforms
Diffstat (limited to 'core/src/test/kotlin/model/KotlinAsJavaTest.kt')
-rw-r--r--core/src/test/kotlin/model/KotlinAsJavaTest.kt14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/src/test/kotlin/model/KotlinAsJavaTest.kt b/core/src/test/kotlin/model/KotlinAsJavaTest.kt
index d24d8bdd..1d95556f 100644
--- a/core/src/test/kotlin/model/KotlinAsJavaTest.kt
+++ b/core/src/test/kotlin/model/KotlinAsJavaTest.kt
@@ -2,10 +2,13 @@ package org.jetbrains.dokka.tests
import org.jetbrains.dokka.DocumentationModule
import org.jetbrains.dokka.NodeKind
+import org.jetbrains.dokka.Platform
import org.junit.Test
import org.junit.Assert.assertEquals
class KotlinAsJavaTest {
+ private val defaultModelConfig = ModelConfig (analysisPlatform = Platform.jvm)
+
@Test fun function() {
verifyModelAsJava("testdata/functions/function.kt") { model ->
val pkg = model.members.single()
@@ -33,8 +36,13 @@ fun verifyModelAsJava(source: String,
withJdk: Boolean = false,
withKotlinRuntime: Boolean = false,
verifier: (DocumentationModule) -> Unit) {
- verifyModel(source,
- withJdk = withJdk, withKotlinRuntime = withKotlinRuntime,
+ checkSourceExistsAndVerifyModel(
+ source,
+ modelConfig = ModelConfig(
+ withJdk = withJdk,
+ withKotlinRuntime = withKotlinRuntime,
format = "html-as-java",
- verifier = verifier)
+ analysisPlatform = Platform.jvm),
+ verifier = verifier
+ )
}