aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/JavaTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/JavaTest.kt')
-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)
+ }
}
}