Interface ExpectedObject<T>
- Type Parameters:
T- the type of the expected object
- All Superinterfaces:
Expected
- All Known Subinterfaces:
ExpectedException<T>
A type representing the expected object in a test.
-
Field Summary
Fields inherited from interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
BRACKET_FORMATTER -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ExpectedObject<T>Returns an expected behavior where the expected object is described with the given object.static <T> ExpectedObject<T>Returns an expected behavior where the expected object is described with the given object.booleanReturns true if the given object is as expected.
-
Method Details
-
of
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.
- Type Parameters:
T- the type of the expected object- Parameters:
object- the object describing the expected behaviortest- the test to determine if the given object is as expectedformatter- the formatter- Returns:
- the expected behavior
-
of
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.
- Type Parameters:
T- the type of the expected object- Parameters:
object- the object describing the expected behaviortest- the test to determine if the given object is as expected- Returns:
- the expected behavior
-
test
Returns true if the given object is as expected.
- Parameters:
object- the object- Returns:
- true if the given object is as expected
-