Class GreaterThanOrEqualTo<T extends java.lang.Comparable<? super T>>

  • All Implemented Interfaces:
    Quality<T>

    public final class GreaterThanOrEqualTo<T extends java.lang.Comparable<? super T>>
    extends QualityComposition<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      GreaterThanOrEqualTo​(T expected)
      Creates Quality that matches if the Comparable value under test is greater than or equal to the given value.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GreaterThanOrEqualTo

        public GreaterThanOrEqualTo​(T expected)
        Creates Quality that matches if the Comparable value under test is greater than or equal to the given value.

        Example

             assertThat(1, is(greaterThanOrEqualTo(0)));