Class FluentComparableAssertion<T extends Comparable,R>

Type Parameters:
T - The value type
R - The return type.
Direct Known Subclasses:
ComparableAssertion, FluentBooleanAssertion, FluentDateAssertion, FluentIntegerAssertion, FluentLongAssertion, FluentVersionAssertion, FluentZonedDateTimeAssertion

public class FluentComparableAssertion<T extends Comparable,R> extends FluentObjectAssertion<T,R>
  • Constructor Details

    • FluentComparableAssertion

      public FluentComparableAssertion(T value, R returns)
      Constructor.
      Parameters:
      value - The object being tested.
      Can be null.
      returns - The object to return after a test method is called.
      If null, the test method returns this object allowing multiple test method calls to be used on the same assertion.
    • FluentComparableAssertion

      public FluentComparableAssertion(Assertion creator, T value, R returns)
      Chained constructor.

      Used when transforming one assertion into another so that the assertion config can be used by the new assertion.

      Parameters:
      creator - The assertion that created this assertion.
      Should be null if this is the top-level assertion.
      value - The object being tested.
      Can be null.
      returns - The object to return after a test method is called.
      If null, the test method returns this object allowing multiple test method calls to be used on the same assertion.
  • Method Details