aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/java/memberWithModifiers.java12
-rw-r--r--test/src/model/JavaTest.kt14
2 files changed, 25 insertions, 1 deletions
diff --git a/test/data/java/memberWithModifiers.java b/test/data/java/memberWithModifiers.java
new file mode 100644
index 00000000..2b14b2e1
--- /dev/null
+++ b/test/data/java/memberWithModifiers.java
@@ -0,0 +1,12 @@
+package test
+
+abstract class Test {
+ /**
+ * Summary for Function
+ * @param name is String parameter
+ * @param value is int parameter
+ */
+ protected final void fn(String name, int value) {
+
+ }
+} \ No newline at end of file
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)
+ }
+ }
+ }
+ }
}