ExpectedObjects

public final class ExpectedObjects(source)

A collection of methods for building expected objects.

Author

Dustin Glaser

Functions

Link copied to clipboard
Returns an expected object where the object is expected to be FALSE
Link copied to clipboard
public static ExpectedObject<T> equalsNull<T>()
Returns an expected object where the object is expected to be null.
Link copied to clipboard
Returns an expected object where the object is expected to be TRUE
Link copied to clipboard
public static ExpectedObject<T> equalTo<T>(T object)
Returns an expected object where the object is expected to be equal to the actual object.
Link copied to clipboard
public static ExpectedObject<Class<? extends T>> instanceOf<T, U extends T>(Class<U> type, boolean subtypes)
Returns an expected object where the object is expected be an instance of the given type.
Link copied to clipboard
public static ExpectedObject<T> notEqualsNull<T>()
Returns an expected object where the object is not null.
Link copied to clipboard
public static ExpectedObject<T> notEqualsTo<T>(T object)
Returns an expected object where the object is expected to be not equal to the given object.
Link copied to clipboard
public static ExpectedObject<T> notSameAs<T>(T object)
Returns an expected object where the object is expected to be the same as the given object.
Link copied to clipboard
public static ExpectedObject<T> sameAs<T>(T object)
Returns an expected object where the object is expected to be the same as the given object.
Link copied to clipboard
public static ExpectedObject<T> something<T>()
Returns an expected where the actual result is not relevant.