From e34f813a6c3130b574bacb0a31e727ceb39d0e39 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Thu, 5 Mar 2020 10:49:54 +0100 Subject: fixed test compilation --- plugins/base/src/test/kotlin/model/ClassesTest.kt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/base/src/test/kotlin/model') 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()) { 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() with(C) { - modifier equals Modifier.Open + modifier equals Open with((this / "f").cast()) { - modifier equals Modifier.Open + modifier equals Open } } with(D) { - modifier equals Modifier.Final + modifier equals Final with((this / "f").cast()) { - 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() with(C) { - modifier equals Modifier.Abstract - ((this / "foo").cast()).modifier equals Modifier.Abstract + modifier equals Abstract + ((this / "foo").cast()).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 -- cgit