diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-16 16:37:25 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-16 16:37:25 +0100 |
commit | 614f5fafd60d845b1befc1f6eb6b18984b7ef351 (patch) | |
tree | 5dad2a726d89062b7a96b80840482b5736bf506e /test/src/model/JavaTest.kt | |
parent | 4bec8fc549a8c6614ad5871417b9cbcfb1dee57b (diff) | |
download | dokka-614f5fafd60d845b1befc1f6eb6b18984b7ef351.tar.gz dokka-614f5fafd60d845b1befc1f6eb6b18984b7ef351.tar.bz2 dokka-614f5fafd60d845b1befc1f6eb6b18984b7ef351.zip |
nicer representation for enum values
Diffstat (limited to 'test/src/model/JavaTest.kt')
-rw-r--r-- | test/src/model/JavaTest.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index c727277a..6b3d7820 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -184,4 +184,12 @@ public class JavaTest { assertEquals("Any", fn.detail(DocumentationNode.Kind.Type).name) } } + + Test fun enumValues() { + verifyPackageMember("test/data/java/enumValues.java") { cls -> + val superTypes = cls.details(DocumentationNode.Kind.Supertype) + assertEquals(0, superTypes.size()) + assertEquals(1, cls.members(DocumentationNode.Kind.EnumItem).size()) + } + } } |