public class Assertions extends Object
| Constructor and Description |
|---|
Assertions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
check(boolean b)
Checks if b holds.
|
static void |
check(boolean b,
String msg) |
static void |
check(boolean b,
Throwable t) |
static int |
notNegative(int i) |
static void |
notNegative(int a,
int b) |
static void |
notNull(Object a,
Object b) |
static void |
notNull(Object a,
Object b,
Object c) |
static <T> T |
notNull(T t) |
public static <T> T notNull(T t)
NullPointerException - iff (t==null)public static int notNegative(int i)
IndexOutOfBoundsException - iff (i<0)public static void notNegative(int a,
int b)
public static void check(boolean b)
IllegalStateException - iff (b==false)public static void check(boolean b,
Throwable t)
public static void check(boolean b,
String msg)
msg - for exception, in case b==falseCopyright © 2010–2017 EvoSuite. All rights reserved.