From acb49b47437b1534b910e23927f8fddca26c69f3 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 13 Feb 2015 15:36:13 +0100 Subject: process modifiers of Java elements --- test/src/model/JavaTest.kt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test/src/model') 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) + } + } + } + } } -- cgit