ActualObject

public interface ActualObject<T> implements Actual(source)

A type representing the actual object in a test.

Author

Dustin Glaser

Inheritors

Functions

Link copied to clipboard
public abstract T behavior()
Returns the object under test.
Link copied to clipboard
public boolean display()
Link copied to clipboard
public T object()
Returns the object under test.
Link copied to clipboard
public static ActualObject<T> of<T>(T object, boolean successful)
public static Actual of(Object behavior, boolean successful)

public static ActualObject<T> of<T>(T object, boolean successful, Function<String, String> formatter)
Returns an instance representing a behavior where the given object was tested or, if no object was given, an behavior where no object was returned.
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 abstract boolean successful()
public static Actual successful(Object behavior)
Link copied to clipboard
public static Actual unexpected(Object behavior)