public enum Mocker extends Enum<Mocker>
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
ignored(Class<T> tClass) |
static <T> T |
intercepting(Class<T> tClass,
BiConsumer<String,Object[]> consumer,
T t) |
static <T> T |
intercepting(Class<T> tClass,
String description,
Consumer<String> consumer) |
static <T> T |
intercepting(Class<T> tClass,
String description,
Consumer<String> consumer,
T t) |
static <T> T |
logging(Class<T> tClass,
String description,
PrintStream out) |
static <T> T |
logging(Class<T> tClass,
String description,
PrintWriter out) |
static <T> T |
logging(Class<T> tClass,
String description,
StringWriter out) |
static <T> T |
queuing(Class<T> tClass,
String description,
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
Class<T> tClass,
String description,
@NotNull
PrintStream out)
@NotNull
public static <T> T logging(@NotNull
Class<T> tClass,
String description,
@NotNull
PrintWriter out)
@NotNull
public static <T> T logging(@NotNull
Class<T> tClass,
String description,
@NotNull
StringWriter out)
@NotNull
public static <T> T queuing(@NotNull
Class<T> tClass,
String description,
@NotNull
BlockingQueue<String> queue)
@NotNull
public static <T> T intercepting(@NotNull
Class<T> tClass,
String description,
@NotNull
Consumer<String> consumer)
@NotNull
public static <T> T intercepting(@NotNull
Class<T> tClass,
@NotNull
String description,
@NotNull
Consumer<String> consumer,
T t)
@NotNull
public static <T> T intercepting(@NotNull
Class<T> tClass,
@NotNull
BiConsumer<String,Object[]> consumer,
T t)
@NotNull
public static <T> T ignored(@NotNull
Class<T> tClass)
Copyright © 2019. All rights reserved.