public final class AssertState
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
isEqual(T exp,
T was)
Throws an IllegalStateException when the given values are not equal.
|
static <T> T |
isEqual(T exp,
T was,
java.lang.String message)
Throws an IllegalStateException when the given values are not equal.
|
static java.lang.Boolean |
isFalse(java.lang.Boolean value)
Throws an IllegalStateException when the given value is not false.
|
static java.lang.Boolean |
isFalse(java.lang.Boolean value,
java.lang.String message)
Throws an IllegalStateException when the given value is not false.
|
static <T> T |
isNull(T value)
Throws an IllegalStateException when the given value is not null.
|
static <T> T |
isNull(T value,
java.lang.String message)
Throws an IllegalStateException when the given value is not null.
|
static <T> T |
isSame(T exp,
T was)
Throws an IllegalStateException when the given values are not the same.
|
static <T> T |
isSame(T exp,
T was,
java.lang.String message)
Throws an IllegalStateException when the given values are not the same.
|
static java.lang.Boolean |
isTrue(java.lang.Boolean value)
Throws an IllegalStateException when the given value is not true.
|
static java.lang.Boolean |
isTrue(java.lang.Boolean value,
java.lang.String message)
Throws an IllegalStateException when the given value is not true.
|
static <T> T |
notNull(T value)
Throws an IllegalStateException when the given value is null.
|
static <T> T |
notNull(T value,
java.lang.String message)
Throws an IllegalStateException when the given value is null.
|
public static <T> T isNull(T value)
public static <T> T isNull(T value,
java.lang.String message)
public static <T> T notNull(T value)
public static <T> T notNull(T value,
java.lang.String message)
public static java.lang.Boolean isTrue(java.lang.Boolean value)
public static java.lang.Boolean isTrue(java.lang.Boolean value,
java.lang.String message)
public static java.lang.Boolean isFalse(java.lang.Boolean value)
public static java.lang.Boolean isFalse(java.lang.Boolean value,
java.lang.String message)
public static <T> T isEqual(T exp,
T was)
public static <T> T isEqual(T exp,
T was,
java.lang.String message)
public static <T> T isSame(T exp,
T was)
public static <T> T isSame(T exp,
T was,
java.lang.String message)
Copyright © 2020. All rights reserved.