TestOfObject

public interface TestOfObject<T> implements Test<TT, ET, RT, AT>(source)

A test of an object.

Author

Dustin Glaser

Parameters

<T>

the type of the object under test

Inheritors

Types

Link copied to clipboard
public interface Builder<T> implements Test.Builder<TT, ET, RT, AT, BT>
A builder for tests of objects.

Functions

Link copied to clipboard
public abstract ET expected()
Returns the expected behavior of this test.
Link copied to clipboard
public ResultOfObject<T> run(T object)
Tests if the given object is as expected and returns the result.
public abstract ResultOfObject<T> run(ObjectCallable<T> callable)
Tests if the object retrieved by the given callable is as expected and returns the result.