public class MatchersKt
| Modifier and Type | Method and Description |
|---|---|
static <ClueType,ReturnType> |
asClue(ClueType $receiver,
kotlin.jvm.functions.Function1<? super ClueType,? extends ReturnType> block)
Similar to
let, but will add this as a clue to the assertion error message in case an assertion fails.
Can be nested, the error message will contain all available clues. |
static Matcher<java.lang.Object> |
haveSameHashCodeAs(java.lang.Object other) |
static void |
shouldHaveSameHashCodeAs(java.lang.Object $receiver,
java.lang.Object other) |
static void |
shouldNotHaveSameHashCodeAs(java.lang.Object $receiver,
java.lang.Object other) |
static <ReturnType> |
withClue(java.lang.Object clue,
kotlin.jvm.functions.Function0<? extends ReturnType> thunk)
Add clue as additional info to the assertion error message in case an assertion fails.
Can be nested, the error message will contain all available clues.
|
public static <ReturnType> ReturnType withClue(java.lang.Object clue,
kotlin.jvm.functions.Function0<? extends ReturnType> thunk)
Add clue as additional info to the assertion error message in case an assertion fails. Can be nested, the error message will contain all available clues.
thunk - the code with assertions to be executedpublic static <ClueType,ReturnType> ReturnType asClue(ClueType $receiver,
kotlin.jvm.functions.Function1<? super ClueType,? extends ReturnType> block)
Similar to let, but will add this as a clue to the assertion error message in case an assertion fails.
Can be nested, the error message will contain all available clues.
block - the code with assertions to be executedpublic static void shouldHaveSameHashCodeAs(java.lang.Object $receiver,
java.lang.Object other)
public static void shouldNotHaveSameHashCodeAs(java.lang.Object $receiver,
java.lang.Object other)
public static Matcher<java.lang.Object> haveSameHashCodeAs(java.lang.Object other)