aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/model/ClassesTest.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-03-05 10:49:54 +0100
committerPaweł Marks <pmarks@virtuslab.com>2020-03-05 10:56:58 +0100
commite34f813a6c3130b574bacb0a31e727ceb39d0e39 (patch)
treebaf7ffdea4c620a4acad47ec4619ef56f50952af /plugins/base/src/test/kotlin/model/ClassesTest.kt
parent91d785711dde2108f7494102eceb53ea8f4938ca (diff)
downloaddokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.tar.gz
dokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.tar.bz2
dokka-e34f813a6c3130b574bacb0a31e727ceb39d0e39.zip
fixed test compilation
Diffstat (limited to 'plugins/base/src/test/kotlin/model/ClassesTest.kt')
-rw-r--r--plugins/base/src/test/kotlin/model/ClassesTest.kt20
1 files changed, 10 insertions, 10 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