68 } |
68 } |
69 |
69 |
70 @Test |
70 @Test |
71 public void testModuleModeApi(Path base) throws Exception { |
71 public void testModuleModeApi(Path base) throws Exception { |
72 execTask("--module-source-path", src, |
72 execTask("--module-source-path", src, |
73 "--module", "m1", "--show-module-contents:api"); |
73 "--module", "m1", "--show-module-contents", "api"); |
74 |
74 |
75 checkModuleMode("API"); |
75 checkModuleMode("API"); |
76 } |
76 } |
77 |
77 |
78 @Test |
78 @Test |
79 public void testModuleModeAll(Path base) throws Exception { |
79 public void testModuleModeAll(Path base) throws Exception { |
80 execTask("--module-source-path", src, |
80 execTask("--module-source-path", src, |
81 "--module", "m1", "--show-module-contents:all"); |
81 "--module", "m1", "--show-module-contents", "all"); |
82 |
82 |
83 checkModuleMode("ALL"); |
83 checkModuleMode("ALL"); |
84 } |
84 } |
85 |
85 |
86 @Test |
86 @Test |
87 public void testShowPackagesExported(Path base) throws Exception { |
87 public void testShowPackagesExported(Path base) throws Exception { |
88 execTask("--module-source-path", src, |
88 execTask("--module-source-path", src, |
89 "--module", "m1", |
89 "--module", "m1", |
90 "--show-packages:exported"); // default |
90 "--show-packages", "exported"); // default |
91 |
91 |
92 checkModulesSpecified("m1"); |
92 checkModulesSpecified("m1"); |
93 checkModulesIncluded("m1"); |
93 checkModulesIncluded("m1"); |
94 checkPackagesIncluded("pub"); |
94 checkPackagesIncluded("pub"); |
95 checkTypesIncluded("pub.A", "pub.A.ProtectedNested", "pub.A.PublicNested"); |
95 checkTypesIncluded("pub.A", "pub.A.ProtectedNested", "pub.A.PublicNested"); |
97 |
97 |
98 @Test |
98 @Test |
99 public void testShowPackagesAll(Path base) throws Exception { |
99 public void testShowPackagesAll(Path base) throws Exception { |
100 execTask("--module-source-path", src, |
100 execTask("--module-source-path", src, |
101 "--module", "m1", |
101 "--module", "m1", |
102 "--show-packages:all"); |
102 "--show-packages", "all"); |
103 checkModulesSpecified("m1"); |
103 checkModulesSpecified("m1"); |
104 checkModulesIncluded("m1"); |
104 checkModulesIncluded("m1"); |
105 checkPackagesIncluded("pub", "pro"); |
105 checkPackagesIncluded("pub", "pro"); |
106 |
106 |
107 checkTypesIncluded("pub.A", "pub.A.ProtectedNested", "pub.A.PublicNested", |
107 checkTypesIncluded("pub.A", "pub.A.ProtectedNested", "pub.A.PublicNested", |
110 |
110 |
111 @Test |
111 @Test |
112 public void testShowTypesPrivate(Path base) throws Exception { |
112 public void testShowTypesPrivate(Path base) throws Exception { |
113 execTask("--module-source-path", src, |
113 execTask("--module-source-path", src, |
114 "--module", "m1", |
114 "--module", "m1", |
115 "--show-types:private"); |
115 "--show-types", "private"); |
116 |
116 |
117 checkModulesSpecified("m1"); |
117 checkModulesSpecified("m1"); |
118 checkModulesIncluded("m1"); |
118 checkModulesIncluded("m1"); |
119 checkPackagesIncluded("pub"); |
119 checkPackagesIncluded("pub"); |
120 |
120 |
127 |
127 |
128 @Test |
128 @Test |
129 public void testShowTypesPackage(Path base) throws Exception { |
129 public void testShowTypesPackage(Path base) throws Exception { |
130 execTask("--module-source-path", src, |
130 execTask("--module-source-path", src, |
131 "--module", "m1", |
131 "--module", "m1", |
132 "--show-types:package"); |
132 "--show-types", "package"); |
133 |
133 |
134 checkModulesSpecified("m1"); |
134 checkModulesSpecified("m1"); |
135 checkModulesIncluded("m1"); |
135 checkModulesIncluded("m1"); |
136 checkPackagesIncluded("pub"); |
136 checkPackagesIncluded("pub"); |
137 |
137 |
143 |
143 |
144 @Test |
144 @Test |
145 public void testShowTypesProtected(Path base) throws Exception { |
145 public void testShowTypesProtected(Path base) throws Exception { |
146 execTask("--module-source-path", src, |
146 execTask("--module-source-path", src, |
147 "--module", "m1", |
147 "--module", "m1", |
148 "--show-types:protected"); |
148 "--show-types", "protected"); |
149 |
149 |
150 checkModulesSpecified("m1"); |
150 checkModulesSpecified("m1"); |
151 checkModulesIncluded("m1"); |
151 checkModulesIncluded("m1"); |
152 checkPackagesIncluded("pub"); |
152 checkPackagesIncluded("pub"); |
153 |
153 |
160 |
160 |
161 @Test |
161 @Test |
162 public void testShowTypesPublic(Path base) throws Exception { |
162 public void testShowTypesPublic(Path base) throws Exception { |
163 execTask("--module-source-path", src, |
163 execTask("--module-source-path", src, |
164 "--module", "m1", |
164 "--module", "m1", |
165 "--show-types:public"); |
165 "--show-types", "public"); |
166 |
166 |
167 checkModulesSpecified("m1"); |
167 checkModulesSpecified("m1"); |
168 checkModulesIncluded("m1"); |
168 checkModulesIncluded("m1"); |
169 checkPackagesIncluded("pub"); |
169 checkPackagesIncluded("pub"); |
170 |
170 |
177 |
177 |
178 @Test |
178 @Test |
179 public void testShowMembersPrivate(Path base) throws Exception { |
179 public void testShowMembersPrivate(Path base) throws Exception { |
180 execTask("--module-source-path", src, |
180 execTask("--module-source-path", src, |
181 "--module", "m1", |
181 "--module", "m1", |
182 "--show-members:private"); |
182 "--show-members", "private"); |
183 |
183 |
184 checkMembers(Visibility.PRIVATE); |
184 checkMembers(Visibility.PRIVATE); |
185 } |
185 } |
186 |
186 |
187 @Test |
187 @Test |
188 public void testShowMembersPackage(Path base) throws Exception { |
188 public void testShowMembersPackage(Path base) throws Exception { |
189 execTask("--module-source-path", src, |
189 execTask("--module-source-path", src, |
190 "--module", "m1", |
190 "--module", "m1", |
191 "--show-members:package"); |
191 "--show-members", "package"); |
192 |
192 |
193 checkMembers(Visibility.PACKAGE); |
193 checkMembers(Visibility.PACKAGE); |
194 } |
194 } |
195 |
195 |
196 @Test |
196 @Test |
197 public void testShowMembersProtected(Path base) throws Exception { |
197 public void testShowMembersProtected(Path base) throws Exception { |
198 execTask("--module-source-path", src, |
198 execTask("--module-source-path", src, |
199 "--module", "m1", |
199 "--module", "m1", |
200 "--show-members:protected"); |
200 "--show-members", "protected"); |
201 |
201 |
202 checkMembers(Visibility.PROTECTED); |
202 checkMembers(Visibility.PROTECTED); |
203 } |
203 } |
204 |
204 |
205 @Test |
205 @Test |
206 public void testShowMembersPublic(Path base) throws Exception { |
206 public void testShowMembersPublic(Path base) throws Exception { |
207 execTask("--module-source-path", src, |
207 execTask("--module-source-path", src, |
208 "--module", "m1", |
208 "--module", "m1", |
209 "--show-members:public"); |
209 "--show-members", "public"); |
210 |
210 |
211 checkMembers(Visibility.PUBLIC); |
211 checkMembers(Visibility.PUBLIC); |
212 } |
212 } |
213 |
213 |
214 @Test |
214 @Test |