I am working on component testing. Where one of my component exits with the system.ext(0) for success scenario and System.exit(1) for failure scenario.
I previously used System-Lambda from catch system exit and asserted expected value.
stefanbirkner system-lambda
I want tried using custom security manager but it is still extends SecurityManger class which is throwing error in maven verify.Java Version 17.
How can we catch system.exit similar to system-lambda