Maybe it is easy, but I am struggling with the following scenario.
public void multipleExit() {
try {
// .. some logic
System.exit(0);
} catch (Exception e) {
System.out.println("Exiting with 10");
System.exit(10);
}
}
how to test wheather the application exited with code '0'?
Maybe it is easy, but I am struggling with the following scenario.
how to test wheather the application exited with code '0'?