Class BasicTest<TT extends Test<TT,ET,RT,AT>,ET extends Expected,RT extends Result<RT,AT,TT,ET>,AT extends Actual>
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest<TT,ET,RT,AT>
- Type Parameters:
TT- the type of the testET- the type of the expected behaviorRT- the type of the resultAT- the type of the actual behavior
- All Implemented Interfaces:
Test<TT,ET, RT, AT>
- Direct Known Subclasses:
BasicFail,BasicTestOfCall,BasicTestOfExceptionalCall,BasicTestOfObject
public abstract class BasicTest<TT extends Test<TT,ET,RT,AT>,ET extends Expected,RT extends Result<RT,AT,TT,ET>,AT extends Actual>
extends Object
implements Test<TT,ET,RT,AT>
An abstract basic implementation of a test.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasicTest(Environment environment, ET expected) Constructs a new test with the given environment and expected behavior. -
Method Summary
Modifier and TypeMethodDescriptionfinal EnvironmentReturns the environment used by this test.final ETexpected()Returns the expected behavior of this test.
-
Constructor Details
-
BasicTest
Constructs a new test with the given environment and expected behavior.
- Parameters:
environment- the environmentexpected- the expected behavior
-
-
Method Details
-
environment
Returns the environment used by this test.- Returns:
- the environment
-
expected
Description copied from interface:TestReturns the expected behavior of this test.
-