public class SupportKt
| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.Void |
expected(Assert<? extends T> $receiver,
java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Fails an assert with the given expected message. These should be in the format:
|
static <T> void |
fail(Assert<? extends T> $receiver,
java.lang.Object expected,
java.lang.Object actual)
Fails an assert with the given expected and actual values.
|
static java.lang.String |
show(java.lang.Object value,
java.lang.String wrap)
Shows the primary value in a failure message.
|
public static java.lang.String show(java.lang.Object value,
java.lang.String wrap)
Shows the primary value in a failure message.
value - The value to display.wrap - What characters to wrap around the value. This should be a pair of characters where the first is at the
beginning and the second is at the end. For example, "()" will show (value). The default is "<>".public static <T> void fail(Assert<? extends T> $receiver, java.lang.Object expected, java.lang.Object actual)
Fails an assert with the given expected and actual values.
public static <T> java.lang.Void expected(Assert<? extends T> $receiver, java.lang.String message, java.lang.Object expected, java.lang.Object actual)
Fails an assert with the given expected message. These should be in the format:
expected("to be:${show(expected)} but was:${show(actual)}")
-> "expected to be: <1> but was <2>"