Class ExitHelper

java.lang.Object
org.djutils.cli.ExitHelper

public class ExitHelper
extends Object
ExitHelper assists in testing System.exit() calls. Normally System.exit() calls cannot be tested by Maven SureFire, see https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#vm-termination
Based on https://stackoverflow.com/questions/309396/java-how-to-test-methods-that-call-system-exit
Other solutions can be found at https://stackoverflow.com/questions/309396/java-how-to-test-methods-that-call-system-exit

Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Alexander Verbraeck