aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 14:22:33 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 14:22:33 +0100
commit5c709d949d5497e562048b2731ab1c25cc06f386 (patch)
treee2e55e00f5a1ac58e6509fdaa1f64e0d006fe26c /test/src/model
parent3e3a4af652358214815ea28e094d6f4d2554bde8 (diff)
downloaddokka-5c709d949d5497e562048b2731ab1c25cc06f386.tar.gz
dokka-5c709d949d5497e562048b2731ab1c25cc06f386.tar.bz2
dokka-5c709d949d5497e562048b2731ab1c25cc06f386.zip
represent non-final classes and methods as open
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/JavaTest.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 2e055d65..df8d8eae 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -46,9 +46,12 @@ public class JavaTest {
Test fun memberWithModifiers() {
verifyPackageMember("test/data/java/memberWithModifiers.java") { cls ->
assertEquals("abstract", cls.details[0].name)
- with(cls.members.single()) {
+ with(cls.members.single { it.name == "fn" }) {
assertEquals("protected", details[0].name)
}
+ with(cls.members.single { it.name == "openFn" }) {
+ assertEquals("open", details[1].name)
+ }
}
}