of
public static ExpectedObject<T> of<T>(T object, Predicate<T> test, Function<String, String> formatter)(source)
Returns an expected behavior where the expected object is described with the given object.
If a given object is as expected is only tested by the given test.
Return
the expected behavior
Parameters
object
the object describing the expected behavior
test
the test to determine if the given object is as expected
formatter
the formatter
<T>
the type of the expected object
Returns an expected behavior where the expected object is described with the given object.
If a given object is as expected is only tested by the given test.
Return
the expected behavior
Parameters
object
the object describing the expected behavior
test
the test to determine if the given object is as expected
<T>
the type of the expected object