diff options
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) + } + } + } + } } |