public enum Mocker extends Enum<Mocker>
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
ignored(@NotNull Class<T> tClass,
Class... additional) |
static <T> T |
intercepting(@NotNull Class<T> tClass,
@NotNull BiConsumer<String,Object[]> consumer,
T t) |
static <T> T |
intercepting(@NotNull Class<T> tClass,
String description,
@NotNull Consumer<String> consumer) |
static <T> T |
intercepting(@NotNull Class<T> tClass,
@NotNull String description,
@NotNull Consumer<String> consumer,
T t) |
static <T> T |
logging(@NotNull Class<T> tClass,
String description,
@NotNull PrintStream out) |
static <T> T |
logging(@NotNull Class<T> tClass,
String description,
@NotNull PrintWriter out) |
static <T> T |
logging(@NotNull Class<T> tClass,
String description,
@NotNull StringWriter out) |
static <T> T |
queuing(@NotNull Class<T> tClass,
String description,
@NotNull BlockingQueue<String> queue) |
static Mocker |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mocker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Mocker[] values()
for (Mocker c : Mocker.values()) System.out.println(c);
public static Mocker valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@NotNull
public static <T> T logging(@NotNull
@NotNull Class<T> tClass,
String description,
@NotNull
@NotNull PrintStream out)
@NotNull
public static <T> T logging(@NotNull
@NotNull Class<T> tClass,
String description,
@NotNull
@NotNull PrintWriter out)
@NotNull
public static <T> T logging(@NotNull
@NotNull Class<T> tClass,
String description,
@NotNull
@NotNull StringWriter out)
@NotNull
public static <T> T queuing(@NotNull
@NotNull Class<T> tClass,
String description,
@NotNull
@NotNull BlockingQueue<String> queue)
@NotNull
public static <T> T intercepting(@NotNull
@NotNull Class<T> tClass,
String description,
@NotNull
@NotNull Consumer<String> consumer)
@NotNull
public static <T> T intercepting(@NotNull
@NotNull Class<T> tClass,
@NotNull
@NotNull String description,
@NotNull
@NotNull Consumer<String> consumer,
T t)
@NotNull
public static <T> T intercepting(@NotNull
@NotNull Class<T> tClass,
@NotNull
@NotNull BiConsumer<String,Object[]> consumer,
T t)
Copyright © 2020. All rights reserved.