Split sample app

- spring-shell-sample-commands and spring-shell-sample-e2e
- Needed changes in e2e tests and workflow
- Fixes #754
This commit is contained in:
Janne Valkealahti
2023-06-15 10:31:05 +01:00
parent 71ed64670f
commit c27b85fb0e
58 changed files with 257 additions and 31 deletions

37
.vscode/launch.json vendored
View File

@@ -3,41 +3,48 @@
"configurations": [
{
"type": "java",
"name": "Sample interactive",
"name": "commands interactive",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples"
"projectName": "spring-shell-sample-commands"
},
{
"type": "java",
"name": "Sample help",
"name": "commands help",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-commands",
"args": "help"
},
{
"type": "java",
"name": "Sample fail noarg",
"name": "commands fail noarg",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-commands",
"args": "fail"
},
{
"type": "java",
"name": "Sample fail arg",
"name": "commands fail arg",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-commands",
"args": "fail --elementType TYPE"
},
{
"type": "java",
"name": "e2e interactive",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-sample-e2e"
},
{
"type": "java",
"name": "e2e reg error-handling",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg error-handling"
},
{
@@ -45,7 +52,7 @@
"name": "e2e reg error-handling arg1 throw1",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg error-handling --arg1 throw1"
},
{
@@ -53,7 +60,7 @@
"name": "e2e reg error-handling arg1 throw2",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg error-handling --arg1 throw2"
},
{
@@ -61,7 +68,7 @@
"name": "e2e reg error-handling arg1 throw3",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg error-handling --arg1 throw3"
},
{
@@ -69,7 +76,7 @@
"name": "e2e exit-code noarg",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg exit-code"
},
{
@@ -77,7 +84,7 @@
"name": "e2e exit-code arg hi",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg exit-code --arg1 hi"
},
{
@@ -85,7 +92,7 @@
"name": "e2e exit-code arg fun",
"request": "launch",
"mainClass": "org.springframework.shell.samples.SpringShellSample",
"projectName": "spring-shell-samples",
"projectName": "spring-shell-sample-e2e",
"args": "e2e reg exit-code --arg1 fun"
}
]