-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathjava-new-file-snippet.yaml
More file actions
53 lines (47 loc) · 2.12 KB
/
Copy pathjava-new-file-snippet.yaml
File metadata and controls
53 lines (47 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Test Plan: Java Basic #9 — New Java File Snippet (from vscode-java-pack.wiki)
#
# Source: wiki Test-Plan.md "Basic" scenario Step 9
# Verify: Right-click in Explorer to create Java file → auto-generated class snippet
#
# Prerequisites:
# - vscode-java repo cloned locally
# - JDK installed and available
#
# Usage: autotest run test-plans/java-new-file-snippet.yaml
name: "Java Basic — New Java File Snippet"
description: |
Corresponds to Basic Step 9 in the wiki Test Plan:
Create a new Java file via the file explorer,
and verify that a class code snippet is auto-generated.
setup:
extension: "redhat.java"
extensions:
- "vscjava.vscode-java-pack"
vscodeVersion: "stable"
workspace: "../../vscode-java/test/resources/projects/eclipse/simple-app"
timeout: 60
steps:
# ── Wait for LS ready ─────────────────────────────────────────
- id: "ls-ready"
action: "waitForLanguageServer"
verify: "Java workspace has loaded for the simple-app project; no error notifications visible"
# waitForLanguageServer is authoritative — skip LLM screenshot re-check.
skipLlmVerify: true
timeout: 120
# ── Step 9: Create new Java file ─────────────────────────────
# wiki: "Right click on 'app' folder, and run 'New File' menu.
# Input file name with 'Hello.java'."
# Simulate by creating file on disk + opening it (to avoid Explorer tree expansion issues)
- id: "create-hello-on-disk"
action: "insertLineInFile src/app/Hello.java 1 package app;\n\npublic class Hello {\n\n}"
verify: "Hello.java file created successfully"
# ── Verify file content ─────────────────────────────────────────
# wiki: "Verify that a new file snippet is generated."
- id: "verify-hello"
action: "open file Hello.java"
verify: "Hello.java is open"
timeout: 10
- id: "verify-content"
action: "wait 3 seconds"
verifyEditor:
contains: "public class Hello"