aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/java/superClass.java4
-rw-r--r--test/src/model/JavaTest.kt12
2 files changed, 16 insertions, 0 deletions
diff --git a/test/data/java/superClass.java b/test/data/java/superClass.java
new file mode 100644
index 00000000..99535813
--- /dev/null
+++ b/test/data/java/superClass.java
@@ -0,0 +1,4 @@
+package test;
+
+public class Foo extends Exception implements Cloneable {
+}
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)
+ }
+ }
+ }
}