public final class IllegalStateAssertion extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
assertEquals(T exp,
T was,
String message)
Throws an IllegalStateException when the given values are not equal.
|
static Boolean |
assertFalse(Boolean value,
String message)
Throws an IllegalStateException when the given value is not false.
|
static <T> T |
assertNotNull(T value,
String message)
Throws an IllegalStateException when the given value is null.
|
static <T> T |
assertNull(T value,
String message)
Throws an IllegalStateException when the given value is not null.
|
static <T> T |
assertSame(T exp,
T was,
String message)
Throws an IllegalStateException when the given values are not equal.
|
static Boolean |
assertTrue(Boolean value,
String message)
Throws an IllegalStateException when the given value is not true.
|
public static <T> T assertNull(T value, String message)
public static <T> T assertNotNull(T value, String message)
public static Boolean assertTrue(Boolean value, String message)
public static Boolean assertFalse(Boolean value, String message)
public static <T> T assertEquals(T exp, T was, String message)
public static <T> T assertSame(T exp, T was, String message)
Copyright © 2015. All rights reserved.