diff options
author | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 15:37:18 +0300 |
---|---|---|
committer | aleksZubakov <aleks.zubakov@gmail.com> | 2018-07-12 15:37:18 +0300 |
commit | 960ea9ebb01f280c4966e139c1697f083e9d8965 (patch) | |
tree | 05bb14e7faf1b74a0abf89f69a73023b4373eefd /core/src/test/kotlin/model/KotlinAsJavaTest.kt | |
parent | 65b61e31b761071589e257381bea33557d932412 (diff) | |
download | dokka-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.kt | 14 |
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 + ) } |