BasicTest

public abstract class BasicTest<TT extends Test<TT, ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual> implements Test<TT, ET, RT, AT>(source)

An abstract basic implementation of a test.

Author

Dustin Glaser

Parameters

<TT>

the type of the test

<ET>

the type of the expected behavior

<RT>

the type of the result

<AT>

the type of the actual behavior

Inheritors

Constructors

Link copied to clipboard
protected void BasicTest(Environment environment, ET expected)
Constructs a new test with the given environment and expected behavior.

Types

Link copied to clipboard
protected abstract class Builder<TT extends Test<TT, ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual, BT extends Test.Builder<TT, ET, RT, AT, BT>> implements Test.Builder<TT, ET, RT, AT, BT>

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.