ResultOfObject

public interface ResultOfObject<T> implements Result<RT, AT, TT, ET>(source)

A type representing the result of a TestOfObject.

Author

Dustin Glaser

Parameters

<T>

the type of the object under test

Inheritors

Types

Link copied to clipboard
public interface Builder<T> implements Result.Builder<RT, AT, TT, ET, BT>
return null; A builder for results of objects.

Functions

Link copied to clipboard
public abstract AT actual()
Returns the actual of this result.
Link copied to clipboard
public abstract Throwable cause()
If this result is not successful due to an exception, this method returns the causing exception.
Link copied to clipboard
public abstract RT check(Context context, PreCommentSupplier<? super RT> preCommentSupplier)
If this result is not successful, this method throws an AssertionFailedError informing about the failure.
Link copied to clipboard
public ET expected()
Returns the expected behavior of this result.
Link copied to clipboard
public T object()
Returns the actual object of this result.
Link copied to clipboard
public boolean successful()
Returns if the test was successful.
Link copied to clipboard
public abstract TT test()
Returns the test this result belongs to.