Nothing

public final class Nothing implements Actual, Expected(source)

A type representing no expected behavior.

Author

Dustin Glaser

Properties

Link copied to clipboard
public final static Function<String, String> BRACKET_FORMATTER
A function enclosing a string with brackets.

Functions

Link copied to clipboard
public Object behavior()
Returns an object representing the behavior of the test.
Link copied to clipboard
public boolean display()
Link copied to clipboard
public static Nothing items(List<? extends Object> list)
public static Nothing items(String prefix, List<? extends Object> items)
public static Nothing items(List<? extends Object> list, String suffix)
public static Nothing items(String prefixSingular, String prefixPlural, List<? extends Object> items)
public static Nothing items(String prefix, List<? extends Object> items, String suffix)
public static Nothing items(List<? extends Object> items, String suffixSingular, String suffixPlural)
public static Nothing items(String prefixSingular, String prefixPlural, List<? extends Object> items, String suffixSingular, String suffixPlural)
Link copied to clipboard
public static Nothing nothing()
Link copied to clipboard
public static Actual of(Object behavior, boolean successful)
public static Expected of(Object behavior)
Link copied to clipboard
public String string(Stringifier stringifier)
Returns a string representation of the behavior under test using the given stringifier to make the behavior human-readable.
Link copied to clipboard
public static Nothing successBehavior()
public static Nothing successBehavior(Object behavior)
Link copied to clipboard
public static Actual successful(Object behavior)
public boolean successful()
Link copied to clipboard
public static Nothing text()
public static Nothing text(Object text)
Link copied to clipboard
public static Actual unexpected(Object behavior)