Interface TestOfObject<T>

Type Parameters:
T - the type of the object under test
All Superinterfaces:
Test<TestOfObject<T>,ExpectedObject<T>,ResultOfObject<T>,ActualObject<T>>
All Known Implementing Classes:
BasicTestOfObject

public interface TestOfObject<T> extends Test<TestOfObject<T>,ExpectedObject<T>,ResultOfObject<T>,ActualObject<T>>

A test of an object.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for tests of objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    run(ObjectCallable<T> callable)
    Tests if the object retrieved by the given callable is as expected and returns the result.
    default ResultOfObject<T>
    run(T object)
    Tests if the given object is as expected and returns the result.

    Methods inherited from interface org.tudalgo.algoutils.tutor.general.assertions.Test

    expected
  • Method Details

    • run

      default ResultOfObject<T> run(T object)

      Tests if the given object is as expected and returns the result.

      Parameters:
      object - the object under test
      Returns:
      the result of the test
    • run

      ResultOfObject<T> run(ObjectCallable<T> callable)

      Tests if the object retrieved by the given callable is as expected and returns the result.

      Parameters:
      callable - the callable
      Returns:
      the result of the test