Class SystemExitAssertion

java.lang.Object
com.ginsberg.junit.exit.assertions.SystemExitAssertion

public class SystemExitAssertion extends Object
  • Constructor Details

  • Method Details

    • assertThatCallsSystemExit

      public static SystemExitAssertion assertThatCallsSystemExit(Runnable function)
    • assertThatDoesNotCallSystemExit

      public static void assertThatDoesNotCallSystemExit(Runnable function)
    • withExitCode

      public SystemExitAssertion withExitCode(int code)
    • withExitCodeInRange

      public SystemExitAssertion withExitCodeInRange(int startInclusive, int endInclusive)