GitHub user Surya00011 created a discussion: Improvement: Testing 
OwnerDetails#validate exit behavior

## While working on unit test for ```OwnerDetails```#validate method, I ran 
into a small complication:

- If entityType is invalid, the method ends up calling Main.exit(-1).

- Since this uses System.exit, it terminates the JVM immediately.

- That makes it difficult to write a proper test for this path, because the 
test process itself stops.

>From my side, I just wanted to share this with you. Adding tests for this case 
>isn’t straightforward without special handling. I thought it would be helpful 
>for you to know, in case it comes up again.

Thanks @justinmclean 

GitHub link: https://github.com/apache/gravitino/discussions/8250

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

Reply via email to