I would like to test a method in my program, which handles shutdown of the application. At the end this method calls exit(0);
As expected this shuts also my test application down.
Is there a possibility to catch the exit signal in this particular unit test, so the shutdown of the test application can be avoided?