Class BasicTestOfObject<T>
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest<TestOfObject<T>,ExpectedObject<T>,ResultOfObject<T>,ActualObject<T>>
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject<T>
- Type Parameters:
T- the type of object under test
- All Implemented Interfaces:
Test<TestOfObject<T>,,ExpectedObject<T>, ResultOfObject<T>, ActualObject<T>> TestOfObject<T>
public class BasicTestOfObject<T>
extends BasicTest<TestOfObject<T>,ExpectedObject<T>,ResultOfObject<T>,ActualObject<T>>
implements TestOfObject<T>
A basic implementation of a test of an object.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBasicTestOfObject(Environment environment, ExpectedObject<T> expected) Constructs a new test of an object with the given environment and expected object. -
Method Summary
Modifier and TypeMethodDescriptionrun(ObjectCallable<T> callable) Tests if the object retrieved by the given callable is as expected and returns the result.Methods inherited from class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest
environment, expectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tudalgo.algoutils.tutor.general.assertions.TestOfObject
run
-
Constructor Details
-
BasicTestOfObject
Constructs a new test of an object with the given environment and expected object.
- Parameters:
environment- the environmentexpected- the expected object
-
-
Method Details
-
run
Description copied from interface:TestOfObjectTests if the object retrieved by the given callable is as expected and returns the result.
- Specified by:
runin interfaceTestOfObject<T>- Parameters:
callable- the callable- Returns:
- the result of the test
-