public final class AssertExit
extends java.lang.Object
System.exit(int).| Modifier and Type | Method and Description |
|---|---|
static <EX extends java.lang.Exception> |
assertExit(java.lang.String message,
Predicate<java.lang.Integer> expected,
RunnableWhichThrows<EX> runnable)
Asserts that the given runnable invokes
System.exit(int), and that expected
evaluates to true for the exit status. |
static <EX extends java.lang.Exception> |
assertExitStatusEqual(int expected,
RunnableWhichThrows<EX> runnable)
Asserts that the given runnable invokes
System.exit(int), and that the exit status is
expected. |
static <EX extends java.lang.Exception> |
assertExitStatusEqual(java.lang.String message,
int expected,
RunnableWhichThrows<EX> runnable)
Asserts that the given runnable invokes
System.exit(int), and that the exit status is
expected. |
static <EX extends java.lang.Exception> |
assertExitStatusNotEqual(int notExpected,
RunnableWhichThrows<EX> runnable)
Asserts that the given runnable invokes
System.exit(int), and that the exit status is
not expected. |
static <EX extends java.lang.Exception> |
assertExitStatusNotEqual(java.lang.String message,
int notExpected,
RunnableWhichThrows<EX> runnable)
Asserts that the given runnable invokes
System.exit(int), and that the exit status is
not expected. |
public static <EX extends java.lang.Exception> void assertExitStatusEqual(int expected,
RunnableWhichThrows<EX> runnable)
throws EX extends java.lang.Exception
System.exit(int), and that the exit status is
expected.EX extends java.lang.ExceptionSystem.exit(int)public static <EX extends java.lang.Exception> void assertExitStatusNotEqual(int notExpected,
RunnableWhichThrows<EX> runnable)
throws EX extends java.lang.Exception
System.exit(int), and that the exit status is
not expected.EX extends java.lang.Exceptionpublic static <EX extends java.lang.Exception> void assertExitStatusEqual(@Nullable java.lang.String message, int expected, RunnableWhichThrows<EX> runnable) throws EX extends java.lang.Exception
System.exit(int), and that the exit status is
expected.EX extends java.lang.ExceptionSystem.exit(int)public static <EX extends java.lang.Exception> void assertExitStatusNotEqual(@Nullable java.lang.String message, int notExpected, RunnableWhichThrows<EX> runnable) throws EX extends java.lang.Exception
System.exit(int), and that the exit status is
not expected.EX extends java.lang.Exceptionpublic static <EX extends java.lang.Exception> void assertExit(@Nullable java.lang.String message, Predicate<java.lang.Integer> expected, RunnableWhichThrows<EX> runnable) throws EX extends java.lang.Exception
System.exit(int), and that expected
evaluates to true for the exit status.EX extends java.lang.ExceptionSystem.exit(int)