aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-03-25 15:51:51 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-25 15:58:37 +0100
commit40c3650b2e51d06a10ba204c79ca5c94d390a513 (patch)
treec834da7008e3dfdb5cea43a5765ccf80f5774c65 /plugins/base/src/test/kotlin
parentaf9d525d75a517a5a7cb39d30fd4b2c9e8b93837 (diff)
downloaddokka-40c3650b2e51d06a10ba204c79ca5c94d390a513.tar.gz
dokka-40c3650b2e51d06a10ba204c79ca5c94d390a513.tar.bz2
dokka-40c3650b2e51d06a10ba204c79ca5c94d390a513.zip
Introduce VoidObject and JavaObject
Diffstat (limited to 'plugins/base/src/test/kotlin')
-rw-r--r--plugins/base/src/test/kotlin/model/JavaTest.kt2
-rw-r--r--plugins/base/src/test/kotlin/utils/TestUtils.kt2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/model/JavaTest.kt b/plugins/base/src/test/kotlin/model/JavaTest.kt
index a0cb68d7..b448bf75 100644
--- a/plugins/base/src/test/kotlin/model/JavaTest.kt
+++ b/plugins/base/src/test/kotlin/model/JavaTest.kt
@@ -362,7 +362,7 @@ class JavaTest : AbstractModelTest("/src/main/kotlin/java/Test.java", "java") {
"""
) {
with((this / "java" / "Test" / "fn").cast<DFunction>()) {
- type.name equals "Any"
+ assertTrue(type is JavaObject)
}
}
}
diff --git a/plugins/base/src/test/kotlin/utils/TestUtils.kt b/plugins/base/src/test/kotlin/utils/TestUtils.kt
index 8a3053b3..41c245e6 100644
--- a/plugins/base/src/test/kotlin/utils/TestUtils.kt
+++ b/plugins/base/src/test/kotlin/utils/TestUtils.kt
@@ -74,4 +74,6 @@ val Bound.name: String?
is OtherParameter -> name
is PrimitiveJavaType -> name
is TypeConstructor -> dri.classNames
+ is JavaObject -> "Object"
+ is Void -> "void"
} \ No newline at end of file