Class BasicResult<RT extends Result<RT,AT,TT,ET>,AT extends Actual,TT extends Test<TT,ET,RT,AT>,ET extends Expected>

java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult<RT,AT,TT,ET>
Type Parameters:
RT - the type of the result
AT - the type of the actual behavior
TT - the type of the test
ET - the type of the expected behavior
All Implemented Interfaces:
Result<RT,AT,TT,ET>
Direct Known Subclasses:
BasicResultOfCall, BasicResultOfExceptionalCall, BasicResultOfFail, BasicResultOfObject

public abstract class BasicResult<RT extends Result<RT,AT,TT,ET>,AT extends Actual,TT extends Test<TT,ET,RT,AT>,ET extends Expected> extends Object implements Result<RT,AT,TT,ET>

An abstract basic implementation of a test.

  • Field Details

    • environment

      protected final Environment environment
    • test

      protected final TT extends Test<TT,ET,RT,AT> test
    • actual

      protected final AT extends Actual actual
    • exception

      protected final Exception exception
  • Constructor Details

    • BasicResult

      protected BasicResult(Environment environment, TT test, AT actual, Exception exception)
      Constructs a new result with the given environment, test, actual behavior, exception and state if the test was successful.
      Parameters:
      environment - the environment
      test - the test
      actual - the actual behavior
      exception - the exception
  • Method Details