From 614f5fafd60d845b1befc1f6eb6b18984b7ef351 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 16 Feb 2015 16:37:25 +0100 Subject: nicer representation for enum values --- test/src/model/JavaTest.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/src/model') 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()) + } + } } -- cgit