Commit faf9ac4
test: phase A coverage — newJavaRecord, clean.workspace, project.update
Adds three more vscode-java-dependency commands to the E2E plans, each
exercised through its documented user-visible UI surface:
* java-dep-new-types.yaml
- Adds a 7th cycle for newJavaRecord between Annotation and Abstract
Class. The Record option is filtered out for projects below Java 16
(see JavaType.getDisplayNames in src/explorerCommands/new.ts); the
fixture pom.xml is Java 17 so the option renders. Plan goes from
64 → 75 steps.
* java-dep-build-lifecycle.yaml
- Adds Test 6: java.project.update via the Maven submenu on the
project context menu (the command's only UI mount — no palette,
no toolbar). Uses the new 'contextMenuSubmenu' autotest action
that hovers a submenu trigger then clicks a leaf inside the
nested menu.
- Adds Test 7: java.project.clean.workspace via the view-title
overflow menu. The command may or may not raise a confirmation
dialog depending on JDT.LS state; we use the tolerant
tryClickDialogButton variant so the step passes either way
(cancelling the dialog if shown, avoiding the destructive
VS Code reload). Plan goes from 18 → 26 steps.
Requires @vscjava/vscode-autotest >= 0.7.11 (adds contextMenuSubmenu).
Locally verified:
java-dep-new-types.yaml 75/75 passing
java-dep-build-lifecycle.yaml 26/26 passing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8b89050 commit faf9ac4
2 files changed
Lines changed: 111 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
201 | | - | |
202 | | - | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
207 | | - | |
208 | | - | |
| 210 | + | |
| 211 | + | |
209 | 212 | | |
210 | | - | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | | - | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
242 | 284 | | |
243 | 285 | | |
244 | 286 | | |
| |||
251 | 293 | | |
252 | 294 | | |
253 | 295 | | |
254 | | - | |
| 296 | + | |
255 | 297 | | |
256 | 298 | | |
257 | | - | |
| 299 | + | |
258 | 300 | | |
259 | 301 | | |
260 | | - | |
| 302 | + | |
261 | 303 | | |
262 | 304 | | |
263 | | - | |
| 305 | + | |
264 | 306 | | |
265 | 307 | | |
266 | | - | |
| 308 | + | |
267 | 309 | | |
268 | 310 | | |
269 | 311 | | |
270 | | - | |
| 312 | + | |
271 | 313 | | |
272 | 314 | | |
273 | | - | |
| 315 | + | |
274 | 316 | | |
275 | 317 | | |
276 | 318 | | |
277 | | - | |
| 319 | + | |
278 | 320 | | |
279 | 321 | | |
280 | 322 | | |
| |||
0 commit comments