diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2020-03-05 10:49:54 +0100 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-03-05 10:56:58 +0100 |
commit | e34f813a6c3130b574bacb0a31e727ceb39d0e39 (patch) | |
tree | baf7ffdea4c620a4acad47ec4619ef56f50952af | |
parent | 91d785711dde2108f7494102eceb53ea8f4938ca (diff) | |
download | dokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.tar.gz dokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.tar.bz2 dokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.zip |
fixed test compilation
-rw-r--r-- | plugins/base/src/test/kotlin/model/ClassesTest.kt | 20 | ||||
-rw-r--r-- | plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt | 3 |
2 files changed, 12 insertions, 11 deletions
diff --git a/plugins/base/src/test/kotlin/model/ClassesTest.kt b/plugins/base/src/test/kotlin/model/ClassesTest.kt index a22bd775..a59174bf 100644 --- a/plugins/base/src/test/kotlin/model/ClassesTest.kt +++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt @@ -1,8 +1,8 @@ package model import org.jetbrains.dokka.model.* +import org.jetbrains.dokka.model.KotlinModifier.* import org.jetbrains.dokka.model.Function -import org.jetbrains.dokka.model.WithAbstraction.Modifier import org.junit.Test import utils.AbstractModelTest import utils.assertNotNull @@ -172,7 +172,7 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class ) { with((this / "classes" / "Klass").cast<Class>()) { name equals "Klass" - modifier equals Modifier.Sealed + modifier equals KotlinModifier.Sealed } } } @@ -219,15 +219,15 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class val D = (this / "classes" / "D").cast<Class>() with(C) { - modifier equals Modifier.Open + modifier equals Open with((this / "f").cast<Function>()) { - modifier equals Modifier.Open + modifier equals Open } } with(D) { - modifier equals Modifier.Final + modifier equals Final with((this / "f").cast<Function>()) { - modifier equals Modifier.Open + modifier equals Open } D.supertypes.flatMap { it.component2() }.firstOrNull() equals C.dri } @@ -254,16 +254,16 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class val E = (this / "classes" / "E").cast<Class>() with(C) { - modifier equals Modifier.Abstract - ((this / "foo").cast<Function>()).modifier equals Modifier.Abstract + modifier equals Abstract + ((this / "foo").cast<Function>()).modifier equals Abstract } with(D) { - modifier equals Modifier.Abstract + modifier equals Abstract } with(E) { - modifier equals Modifier.Final + modifier equals Final } D.supers.firstOrNull() equals C.dri diff --git a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt b/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt index 9f148369..a6977258 100644 --- a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt +++ b/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt @@ -10,6 +10,7 @@ import org.jetbrains.dokka.base.translators.documentables.PageContentBuilder import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.model.Documentable import org.jetbrains.dokka.model.doc.DocTag +import org.jetbrains.dokka.model.properties.PropertyContainer import org.jetbrains.dokka.pages.* import org.jetbrains.dokka.testApi.context.MockContext import org.jetbrains.dokka.utilities.DokkaConsoleLogger @@ -66,7 +67,7 @@ internal object EmptyCommentConverter : CommentsToContentConverter { dci: DCI, platforms: Set<PlatformData>, styles: Set<Style>, - extras: Set<Extra> + extras: PropertyContainer<ContentNode> ): List<ContentNode> = emptyList() } |