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.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 5c8163a3..ab417036 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -75,4 +75,14 @@ public class JavaTest {
}
}
}
+
+ Test fun constructors() {
+ verifyPackageMember("test/data/java/constructors.java") { cls ->
+ val constructors = cls.members(DocumentationNode.Kind.Constructor)
+ assertEquals(2, constructors.size())
+ with(constructors[0]) {
+ assertEquals("<init>", name)
+ }
+ }
+ }
}