GitHub user justinmclean added a comment to the discussion: Improvement: 
Testing OwnerDetails#validate exit behavior

If you set this in a test, it will throw an RuntimeException exception rather 
than exiting:
```
 public static void exit(int code) {
    if (useExit) {
      System.exit(code);
    } else {
      throw new RuntimeException("Exit with code " + code);
    }
  }
```

GitHub link: 
https://github.com/apache/gravitino/discussions/8250#discussioncomment-14189142

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to