So if my program exits on a certain condition, it has to exit with a 1, and if something else, it exits with 2.
So I want to use junit to assert that the exit code is 2, but I don't know how to do that. I also heard there might be a problem where when it runs junit and System.exit is called, then it just tells the JVM to exit entirely, which screws up junit.
Anyone know what I can do? Thanks!!