BasicResultOfObject
public class BasicResultOfObject<T> extends BasicResult<RT, AT, TT, ET> implements ResultOfObject<T>(source)
A basic implementation of a result of an object test.
Author
Dustin Glaser
Parameters
<T>
the type of object under test
Constructors
Link copied to clipboard
public void BasicResultOfObject(Environment environment, TestOfObject<T> test, ActualObject<T> actual, Throwable exception, boolean successful)
Constructs a new result of an object test with the given environment, test, actual object, exception and state if the test was successful.
Types
Link copied to clipboard
public final class Builder<T> extends BasicResult.Builder<RT, AT, TT, ET, BT> implements ResultOfObject.Builder<T>
Functions
Link copied to clipboard
If this result is not successful due to an exception, this method returns the causing exception.
Link copied to clipboard
If this result is not successful, this method throws an AssertionFailedError informing about the failure.
Link copied to clipboard
Returns the expected behavior of this result.
Link copied to clipboard
Returns if the test was successful.