| Constructor and Description |
|---|
AssertUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
assertHasElements(List<T> elements) |
static <T> List<T> |
assertHasElements(List<T> elements,
String errorMessage) |
static <T> Set<T> |
assertHasElements(Set<T> elements) |
static <T> Set<T> |
assertHasElements(Set<T> elements,
String errorMessage) |
static <T> T[] |
assertHasElements(T[] elements) |
static <T> T[] |
assertHasElements(T[] elements,
String errorMessage) |
static <K,V> Map<K,V> |
assertHasEntries(Map<K,V> entries) |
static <K,V> Map<K,V> |
assertHasEntries(Map<K,V> entries,
String errorMessage) |
static double |
assertInRange(double value,
double min,
double max) |
static double |
assertInRange(double value,
double min,
double max,
String errorMessage) |
static int |
assertInRange(int value,
int min,
int max) |
static int |
assertInRange(int value,
int min,
int max,
String errorMessage) |
static double |
assertMaximum(double value,
double max) |
static double |
assertMaximum(double value,
double max,
String errorMessage) |
static int |
assertMaximum(int value,
int max) |
static int |
assertMaximum(int value,
int max,
String errorMessage) |
static double |
assertMinimum(double value,
double min) |
static double |
assertMinimum(double value,
double min,
String errorMessage) |
static int |
assertMinimum(int value,
int min) |
static int |
assertMinimum(int value,
int min,
String errorMessage) |
static double |
assertNegative(double value) |
static double |
assertNegative(double value,
String errorMessage) |
static int |
assertNegative(int value) |
static int |
assertNegative(int value,
String errorMessage) |
static double |
assertNonNegative(double value) |
static double |
assertNonNegative(double value,
String errorMessage) |
static int |
assertNonNegative(int value) |
static int |
assertNonNegative(int value,
String errorMessage) |
static double |
assertNonPositive(double value) |
static double |
assertNonPositive(double value,
String errorMessage) |
static int |
assertNonPositive(int value) |
static int |
assertNonPositive(int value,
String errorMessage) |
static String |
assertNotBlank(String text) |
static String |
assertNotBlank(String text,
String errorMessage) |
static <T> T |
assertNotNull(T obj) |
static <T> T |
assertNotNull(T obj,
String errorMessage) |
static void |
assertNull(Object obj) |
static void |
assertNull(Object obj,
String errorMessage) |
static double |
assertPositive(double value) |
static double |
assertPositive(double value,
String errorMessage) |
static int |
assertPositive(int value) |
static int |
assertPositive(int value,
String errorMessage) |
static void |
assertState(boolean expression) |
static void |
assertState(boolean expression,
String errorMessage) |
static void |
assertTrue(boolean expression) |
static void |
assertTrue(boolean expression,
String errorMessage) |
public static void assertTrue(boolean expression)
public static void assertTrue(boolean expression,
String errorMessage)
public static <T> T assertNotNull(T obj)
public static <T> T assertNotNull(T obj,
String errorMessage)
public static void assertNull(Object obj)
public static void assertState(boolean expression)
public static void assertState(boolean expression,
String errorMessage)
public static <T> T[] assertHasElements(T[] elements)
public static <T> T[] assertHasElements(T[] elements,
String errorMessage)
public static <T> List<T> assertHasElements(List<T> elements, String errorMessage)
public static <K,V> Map<K,V> assertHasEntries(Map<K,V> entries, String errorMessage)
public static int assertPositive(int value)
public static int assertPositive(int value,
String errorMessage)
public static int assertNonPositive(int value)
public static int assertNonPositive(int value,
String errorMessage)
public static int assertNegative(int value)
public static int assertNegative(int value,
String errorMessage)
public static int assertNonNegative(int value)
public static int assertNonNegative(int value,
String errorMessage)
public static int assertInRange(int value,
int min,
int max)
public static int assertInRange(int value,
int min,
int max,
String errorMessage)
public static int assertMinimum(int value,
int min)
public static int assertMinimum(int value,
int min,
String errorMessage)
public static int assertMaximum(int value,
int max)
public static int assertMaximum(int value,
int max,
String errorMessage)
public static double assertPositive(double value)
public static double assertPositive(double value,
String errorMessage)
public static double assertNonPositive(double value)
public static double assertNonPositive(double value,
String errorMessage)
public static double assertNegative(double value)
public static double assertNegative(double value,
String errorMessage)
public static double assertNonNegative(double value)
public static double assertNonNegative(double value,
String errorMessage)
public static double assertInRange(double value,
double min,
double max)
public static double assertInRange(double value,
double min,
double max,
String errorMessage)
public static double assertMinimum(double value,
double min)
public static double assertMinimum(double value,
double min,
String errorMessage)
public static double assertMaximum(double value,
double max)
public static double assertMaximum(double value,
double max,
String errorMessage)
Copyright © 2017. All rights reserved.