Better e2e tests coverage

- Add integration tests for e2e samples.
- Add some missing commands for new annotation system.
- Backport #654
- Fixes #655
This commit is contained in:
Janne Valkealahti
2023-02-05 16:21:45 +00:00
parent edfe67c00d
commit 8c7b70b21e
12 changed files with 523 additions and 11 deletions

View File

@@ -167,7 +167,8 @@ public class ErrorHandlingCommands {
return CommandHandlingResult.of("Hi, handled custom exception 3\n", 3);
}
if (e instanceof CustomException4) {
return CommandHandlingResult.of("Hi, handled custom exception\n", 42);
String msg = String.format("Hi, handled custom exception %s\n", e);
return CommandHandlingResult.of(msg, 42);
}
if (e instanceof IllegalArgumentException) {
return CommandHandlingResult.of("Hi, handled illegal exception\n", 42);