Class BasicResultOfObject<T>

java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult<ResultOfObject<T>,ActualObject<T>,TestOfObject<T>,ExpectedObject<T>>
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject<T>
Type Parameters:
T - the type of object under test
All Implemented Interfaces:
Result<ResultOfObject<T>,ActualObject<T>,TestOfObject<T>,ExpectedObject<T>>, ResultOfObject<T>

public class BasicResultOfObject<T> extends BasicResult<ResultOfObject<T>,ActualObject<T>,TestOfObject<T>,ExpectedObject<T>> implements ResultOfObject<T>

A basic implementation of a result of an object test.

  • Constructor Details

    • BasicResultOfObject

      public BasicResultOfObject(Environment environment, TestOfObject<T> test, ActualObject<T> actual, Exception exception, boolean successful)

      Constructs a new result of an object test with the given environment, test, actual object, exception and state if the test was successful.

      Parameters:
      environment - the environment
      test - the test
      actual - the actual object
      exception - the exception
      successful - the state if the test was successful