public final class AssumptionCheck
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssumptionCheck.CallBackText
Callback to generate text if assumtion is false.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
throwEmpty(java.lang.Object[] array)
Throws if array is null or empty
|
static void |
throwFalse(boolean check)
Throws an exception if check is false.
|
static void |
throwFalse(boolean check,
AssumptionCheck.CallBackText cbText)
Throws an exception if check is false.
|
static void |
throwFalse(boolean check,
java.lang.String text)
Throws an exception if check is false.
|
static void |
throwGreater(long a,
long b)
Throws an exception if a is greater than b.
|
static void |
throwGreater(java.lang.Long a,
java.lang.Long b)
Throws an exception if a is greater than b.
|
static void |
throwNotContained(java.lang.String[] source,
java.lang.String[] target) |
static void |
throwNull(java.lang.Object o)
Throws an exception if object is null.
|
static <T> void |
throwNullArray(T[] a)
Throws an exception if array or elements are null.
|
static void |
throwNulls(java.lang.Object... o)
Throws an exception if at least one object is null;
|
static void |
throwNullText(java.lang.Object o,
java.lang.String text)
Throws an exception if object is null.
|
static void |
throwText(java.lang.String text)
Throws an exception with text an writes text to log.
|
static void |
throwTrue(boolean check,
AssumptionCheck.CallBackText cbText)
Throws an exception if check is true;
|
static void |
throwTrue(boolean check,
java.lang.String text)
Throws an exception if check is true.
|
public static void throwText(java.lang.String text)
text - public static void throwFalse(boolean check)
check - public static void throwFalse(boolean check,
java.lang.String text)
check - text - public static void throwFalse(boolean check,
AssumptionCheck.CallBackText cbText)
check - cbText - public static void throwTrue(boolean check,
java.lang.String text)
check - errorText - public static void throwTrue(boolean check,
AssumptionCheck.CallBackText cbText)
check - cbText - public static void throwNull(java.lang.Object o)
o - public static <T> void throwNullArray(T[] a)
a - public static void throwNullText(java.lang.Object o,
java.lang.String text)
o - text - public static void throwNulls(java.lang.Object... o)
o - public static void throwGreater(java.lang.Long a,
java.lang.Long b)
a - if null, check is not performed.b - if null, check is not performed.public static void throwGreater(long a,
long b)
a - b - public static void throwEmpty(java.lang.Object[] array)
array - public static void throwNotContained(java.lang.String[] source,
java.lang.String[] target)