diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 18:12:55 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 18:12:55 +0100 |
commit | 902aeb158001473aa2d8d011c1e8e584163c5edd (patch) | |
tree | 6f149a833429758adc39cd1994b0a46b851ebcff /test | |
parent | 95e3e32c181429df73cfbf03958dfe4e30d6001d (diff) | |
download | dokka-902aeb158001473aa2d8d011c1e8e584163c5edd.tar.gz dokka-902aeb158001473aa2d8d011c1e8e584163c5edd.tar.bz2 dokka-902aeb158001473aa2d8d011c1e8e584163c5edd.zip |
add Java inner classes to model
Diffstat (limited to 'test')
-rw-r--r-- | test/data/java/innerClass.java | 6 | ||||
-rw-r--r-- | test/src/model/JavaTest.kt | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/data/java/innerClass.java b/test/data/java/innerClass.java new file mode 100644 index 00000000..dd08e100 --- /dev/null +++ b/test/data/java/innerClass.java @@ -0,0 +1,6 @@ +package test; + +class Test { + public class D { + } +} diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index ab417036..fcfae21a 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -85,4 +85,11 @@ public class JavaTest { } } } + + Test fun innerClass() { + verifyPackageMember("test/data/java/innerClass.java") { cls -> + val innerClass = cls.members(DocumentationNode.Kind.Class).single() + assertEquals("D", innerClass.name) + } + } } |