diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 15:36:13 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 15:36:13 +0100 |
commit | acb49b47437b1534b910e23927f8fddca26c69f3 (patch) | |
tree | c3a3d1bb80e8e3c58ba23eb8ae43aea716f5ede7 /test/src | |
parent | 7697bed83f4f4c1e7b853e415053107e45d8aded (diff) | |
download | dokka-acb49b47437b1534b910e23927f8fddca26c69f3.tar.gz dokka-acb49b47437b1534b910e23927f8fddca26c69f3.tar.bz2 dokka-acb49b47437b1534b910e23927f8fddca26c69f3.zip |
process modifiers of Java elements
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/model/JavaTest.kt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/src/model/JavaTest.kt b/test/src/model/JavaTest.kt index 602e1382..281d51ef 100644 --- a/test/src/model/JavaTest.kt +++ b/test/src/model/JavaTest.kt @@ -6,7 +6,7 @@ import org.junit.* public class JavaTest { Test fun function() { - verifyModel("test/data/java/") { model -> + verifyModel("test/data/java/member.java") { model -> val pkg = model.members.single() with(pkg.members.single()) { assertEquals("Test", name) @@ -30,4 +30,16 @@ public class JavaTest { } } } + + Test fun memberWithModifiers() { + verifyModel("test/data/java/memberWithModifiers.java") { model -> + val pkg = model.members.single() + with(pkg.members.single()) { + assertEquals("abstract", details[0].name) + with(members.single()) { + assertEquals("protected", details[0].name) + } + } + } + } } |