BasicTestOfObject

public class BasicTestOfObject<T> extends BasicTest<TT, ET, RT, AT> implements TestOfObject<T>(source)

A basic implementation of a test of an object.

Parameters

<T>

the type of object under test

Constructors

Link copied to clipboard
public void BasicTestOfObject(Environment environment, ExpectedObject<T> expected)
Constructs a new test of an object with the given environment and expected object.

Types

Link copied to clipboard
public final class Builder<T> extends BasicTest.Builder<TT, ET, RT, AT, BT> implements TestOfObject.Builder<T>

Functions

Link copied to clipboard
public final Environment environment()
Returns the environment used by this test.
Link copied to clipboard
public final 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 ResultOfObject<T> run(ObjectCallable<T> callable)
Tests if the object retrieved by the given callable is as expected and returns the result.