dodona-edu / judge-java

JUnit-based Java judge for the Dodona learning environment
MIT License
1 stars 1 forks source link

Allow System.exit() calls in Interactive tests #22

Closed thepieterdc closed 5 years ago

thepieterdc commented 5 years ago

Students often use System.exit() in interactive programs as an alternative to simply writing return in the main-method, because the concept of functions/methods has not been taught yet. This PR allows System.exit() to be used in Interactive tests without throwing an AssertionError.

In the future, this behaviour might be extended to mimic ExpectedSystemExit-behaviour.