From 3f9dedbc9a0d559ab1320c395847ff88af7ad497 Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Thu, 26 Mar 2020 09:54:01 +0100 Subject: Fixed tests --- plugins/base/src/test/kotlin/model/ClassesTest.kt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 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 a7ec861a..ee109ba1 100644 --- a/plugins/base/src/test/kotlin/model/ClassesTest.kt +++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt @@ -1,7 +1,9 @@ package model +import org.jetbrains.dokka.Platform import org.jetbrains.dokka.model.* import org.jetbrains.dokka.model.KotlinModifier.* +import org.jetbrains.dokka.pages.PlatformData import org.junit.jupiter.api.Assertions.assertNull import org.junit.jupiter.api.Test import utils.AbstractModelTest @@ -167,7 +169,7 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class ) { with((this / "classes" / "Klass").cast()) { name equals "Klass" - modifier equals Sealed + modifier.allValues.forEach { it equals Sealed } } } } @@ -209,15 +211,15 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class val D = (this / "classes" / "D").cast() with(C) { - modifier equals Open + modifier.allValues.forEach { it equals Open } with((this / "f").cast()) { - modifier equals Open + modifier.allValues.forEach { it equals Open } } } with(D) { - modifier equals Final + modifier.allValues.forEach { it equals Final } with((this / "f").cast()) { - modifier equals Open + modifier.allValues.forEach { it equals Open } } D.supertypes.flatMap { it.component2() }.firstOrNull() equals C.dri } @@ -244,16 +246,16 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class val E = (this / "classes" / "E").cast() with(C) { - modifier equals Abstract - ((this / "foo").cast()).modifier equals Abstract + modifier.allValues.forEach { it equals Abstract } + ((this / "foo").cast()).modifier.allValues.forEach { it equals Abstract } } with(D) { - modifier equals Abstract + modifier.allValues.forEach { it equals Abstract } } with(E) { - modifier equals Final + modifier.allValues.forEach { it equals Final } } D.supers.firstOrNull() equals C.dri -- cgit