Package org.hl7.fhir.utilities
Class SystemExitManager
- java.lang.Object
-
- org.hl7.fhir.utilities.SystemExitManager
-
public class SystemExitManager extends Object
A few places in the code, we call System.exit(int) to pass on the exit code to other tools (for integration in scripts) But you don't want to do that while running the failing things under JUnit This class does two things * Remember the exit code while shutdown / cleanup happens * Allow for a test case to turn exiting off altogther- Author:
- grahamegrieve
-
-
Constructor Summary
Constructors Constructor Description SystemExitManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfinish()static intgetError()static booleanisNoExit()static voidsetError(int error)static voidsetNoExit(boolean noExit)
-