/** * Verifies that the actual value is greater than the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass * assertThat((byte) 2).isGreaterThan((byte) 1); * * // assertion will fail * assertThat((byte) 2).isGreaterThan((byte) 3); * assertThat((byte) 2).isGreaterThan((byte) 2);</code></pre> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or less than the given one. */ public SELF isGreaterThan(byte other) { bytes.assertGreaterThan(info, actual, other); return myself; }
/** * Verifies that the actual value is greater than the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass * assertThat((byte) 2).isGreaterThan((byte) 1); * * // assertion will fail * assertThat((byte) 2).isGreaterThan((byte) 3); * assertThat((byte) 2).isGreaterThan((byte) 2);</code></pre> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or less than the given one. */ public SELF isGreaterThan(byte other) { bytes.assertGreaterThan(info, actual, other); return myself; }
/** * Verifies that the actual value is greater than the given one. * <p> * Example: * * <pre><code class='java'> * // assertion will pass * assertThat((byte) 2).isGreaterThan(1); * * // assertion will fail * assertThat((byte) 2).isGreaterThan(3); * assertThat((byte) 2).isGreaterThan(2); * </code></pre> * * </p> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or less than the given one. */ public S isGreaterThan(byte other) { bytes.assertGreaterThan(info, actual, other); return myself; }