Interface UnevenComparableAssert<S,​T extends java.lang.Comparable<? super T>>

    • Method Detail

      • isEqualByComparingTo

        S isEqualByComparingTo​(T expected)
        Verifies that the actual value is equal to the given one by invoking Comparable.compareTo(Object).
        Parameters:
        expected - the given value to compare the actual value to.
        Returns:
        this assertion object.
        Throws:
        java.lang.AssertionError - if the actual value is null.
        java.lang.AssertionError - if the actual value is not equal to the given one.
      • isNotEqualByComparingTo

        S isNotEqualByComparingTo​(T other)
        Verifies that the actual value is not equal to the given one by invoking Comparable.compareTo(Object).
        Parameters:
        other - the given value to compare the actual value to.
        Returns:
        this assertion object.
        Throws:
        java.lang.AssertionError - if the actual value is null.
        java.lang.AssertionError - if the actual value is equal to the given one.