aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-13 15:36:13 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-13 15:36:13 +0100
commitacb49b47437b1534b910e23927f8fddca26c69f3 (patch)
treec3a3d1bb80e8e3c58ba23eb8ae43aea716f5ede7 /test/src
parent7697bed83f4f4c1e7b853e415053107e45d8aded (diff)
downloaddokka-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.kt14
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)
+ }
+ }
+ }
+ }
}