aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/JavaTest.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt
index 281d51ef..b0e3a133 100644
--- a/test/src/model/JavaTest.kt
+++ b/test/src/model/JavaTest.kt
@@ -42,4 +42,16 @@ public class JavaTest {
}
}
}
+
+ Test fun superClass() {
+ verifyModel("test/data/java/superClass.java") { model ->
+ val pkg = model.members.single()
+ with(pkg.members.single()) {
+ val superTypes = details(DocumentationNode.Kind.Supertype)
+ assertEquals(2, superTypes.size())
+ assertEquals("Exception", superTypes[0].name)
+ assertEquals("Cloneable", superTypes[1].name)
+ }
+ }
+ }
}