I'm tasked with setting up some JUnit tests for a utility app that is required to System.exit(1) under various circumstances, and System Rules is great for testing that. The app can also run in GUI mode and it pops a small JFrame. When it's running in the context of a JUnit test with the ExpectedSystemExit rule applied, as the JFrame is constructed, something surreptitiously exits the jvm. Turn off the ExpectedSystemExit rule, and the test runs as it should, popping the JFrame just fine, it's just I can no longer test for jvm exit()s.
A guess would be that the SecurityManager System Rules 1.9.0 puts in place is disallowing some permission(s). I'm still in the process of collecting more debug info. Until then, is there a known solution this issue?