Interface TestOfObject<T>
- Type Parameters:
T- the type of the object under test
- All Superinterfaces:
Test<TestOfObject<T>,ExpectedObject<T>, ResultOfObject<T>, ActualObject<T>>
- All Known Implementing Classes:
BasicTestOfObject
public interface TestOfObject<T>
extends Test<TestOfObject<T>,ExpectedObject<T>,ResultOfObject<T>,ActualObject<T>>
A test of an object.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionrun(ObjectCallable<T> callable) Tests if the object retrieved by the given callable is as expected and returns the result.default ResultOfObject<T>Tests if the given object is as expected and returns the result.
-
Method Details
-
run
Tests if the given object is as expected and returns the result.
- Parameters:
object- the object under test- Returns:
- the result of the test
-
run
Tests if the object retrieved by the given callable is as expected and returns the result.
- Parameters:
callable- the callable- Returns:
- the result of the test
-