0

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!!

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by musthafa.aj
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.