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 Details

  • Method Details

    • getError

      public static int getError()
    • setError

      public static void setError(int error)
    • isNoExit

      public static boolean isNoExit()
    • setNoExit

      public static void setNoExit(boolean noExit)
    • finish

      public static void finish()