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

  • All Implemented Interfaces:
    Quality<T>

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

      Constructors 
      Constructor Description
      GreaterThan​(T expected)
      Creates Quality that matches if the Comparable value under test is greater than 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

      • GreaterThan

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

        Example

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