Skip to content

Commit 273efd1

Browse files
bsabyandxu
authored andcommitted
Add args/vmagrs test case (#447)
1 parent 3691e83 commit 273efd1

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

TestPlan.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,19 @@ Exception in thread "main" java.lang.IllegalStateException
457457
- "C:\Users\andxu\AppData\Roaming"
458458
- ".json"
459459
- "17.argstest"
460+
461+
## Args and vmArgs
462+
1. Open `17.argstest` in vscode.
463+
2. Change the launch.json as following:
464+
```
465+
"mainClass": "test.ArgsTest",
466+
"args": ["a b", "foo \\\"bar"],
467+
"vmArgs": ["-Xms64M", "-Xmx128M", "-Dfoo= \\bar"]
468+
```
469+
3. Add the following statement to get the properties:
470+
```
471+
String foo = (String) System.getProperties().get("foo");
472+
```
473+
4. Press F5 to verify the variables should be like this:
474+
475+
![args](images/args.PNG)

images/args.PNG

5.74 KB
Loading

0 commit comments

Comments
 (0)