Package org.djutils.cli
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
 
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
 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExitHelper.ExitExceptionException that will be thrown instead of the System.exit() call.static classExitHelper.NoExitSecurityManagerThe security manager for the exit exception. - 
Constructor Summary
Constructors Constructor Description ExitHelper() - 
Method Summary
 
- 
Constructor Details
- 
ExitHelper
public ExitHelper() 
 -