static <C extends Collection<T>,T> void |
GridTestUtils.assertContains(IgniteLogger log,
C col,
T elem) |
Checks that collection {@param col} contains element {@param elem}.
|
static void |
GridTestUtils.assertContains(IgniteLogger log,
String str,
String substr) |
Checks that string {@param str} contains substring {@param substr}.
|
static <C extends Collection<T>,T> void |
GridTestUtils.assertNotContains(IgniteLogger log,
C col,
T elem) |
Checks that collection {@param col} doesn't contains element {@param str}.
|
static void |
GridTestUtils.assertNotContains(IgniteLogger log,
String str,
String substr) |
Checks that string {@param str} doesn't contains substring {@param substr}.
|
static Throwable |
GridTestUtils.assertThrows(IgniteLogger log,
Class<? extends Throwable> cls,
String msg,
Object obj,
String mtd,
Object... params) |
Checks whether object's method call throws expected exception or not.
|
static Throwable |
GridTestUtils.assertThrows(IgniteLogger log,
Callable<?> call,
Class<? extends Throwable> cls,
String msg) |
Checks whether callable throws expected exception or not.
|
static Throwable |
GridTestUtils.assertThrows(IgniteLogger log,
GridTestUtils.RunnableX run,
Class<? extends Throwable> cls,
String msg) |
Checks whether runnable throws expected exception or not.
|
static void |
GridTestUtils.assertThrowsAnyCause(IgniteLogger log,
Callable<?> call,
Class<? extends Throwable> cls,
String msg) |
Checks whether callable throws an exception with specified cause.
|
static Throwable |
GridTestUtils.assertThrowsInherited(IgniteLogger log,
Callable<?> call,
Class<? extends Throwable> cls,
String msg) |
Checks whether callable throws expected exception or its child or not.
|
static void |
GridTestUtils.retryAssert(IgniteLogger log,
int retries,
long retryInterval,
org.apache.ignite.internal.util.lang.GridAbsClosure c) |
Tries few times to perform some assertion.
|
static void |
GridTestUtils.stopThreads(IgniteLogger log) |
Interrupts and waits for termination of all the threads started
so far by current test.
|