public class APIKt
| Modifier and Type | Method and Description |
|---|---|
static void |
checkEquals(MockKAssertScope $receiver,
java.lang.Object expected) |
static void |
checkEquals(MockKAssertScope $receiver,
java.lang.String msg,
java.lang.Object expected) |
static <T> T |
internalSubstitute(T $receiver,
java.util.Map<java.lang.Object,? extends java.lang.Object> map) |
static <T> java.util.List<T> |
internalSubstitute(java.util.List<? extends T> $receiver,
java.util.Map<java.lang.Object,? extends java.lang.Object> map) |
static MockKAdditionalAnswerScope<kotlin.Unit,kotlin.Unit> |
just(MockKStubScope<kotlin.Unit,kotlin.Unit> $receiver,
Runs runs)
Part of DSL. Answer placeholder for Unit returning functions.
|
static <T> T |
use(MockKUnmockKScope $receiver,
kotlin.jvm.functions.Function0<? extends T> block)
Wraps block of code for safe resource allocation and deallocation. Part of DSL
|
static <T extends Deregisterable,R> |
use(T $receiver,
kotlin.jvm.functions.Function1<? super T,? extends R> block) |
public static void checkEquals(MockKAssertScope $receiver, java.lang.Object expected)
public static void checkEquals(MockKAssertScope $receiver, java.lang.String msg, java.lang.Object expected)
public static MockKAdditionalAnswerScope<kotlin.Unit,kotlin.Unit> just(MockKStubScope<kotlin.Unit,kotlin.Unit> $receiver, Runs runs)
Part of DSL. Answer placeholder for Unit returning functions.
public static <T> T use(MockKUnmockKScope $receiver, kotlin.jvm.functions.Function0<? extends T> block)
Wraps block of code for safe resource allocation and deallocation. Part of DSL
public static <T extends Deregisterable,R> R use(T $receiver, kotlin.jvm.functions.Function1<? super T,? extends R> block)
public static <T> T internalSubstitute(T $receiver,
java.util.Map<java.lang.Object,? extends java.lang.Object> map)
public static <T> java.util.List<T> internalSubstitute(java.util.List<? extends T> $receiver,
java.util.Map<java.lang.Object,? extends java.lang.Object> map)