/** * Verifies that the actual value is greater than the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass: * assertThat(Short.valueOf("1")).isGreaterThan((short) 0); * * // assertions will fail: * assertThat(Short.valueOf("0")).isGreaterThan((short) 1); * assertThat(Short.valueOf("0")).isGreaterThan((short) 0);</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(short other) { shorts.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(Short.valueOf("1")).isGreaterThan((short) 0); * * // assertions will fail: * assertThat(Short.valueOf("0")).isGreaterThan((short) 1); * assertThat(Short.valueOf("0")).isGreaterThan((short) 0);</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(short other) { shorts.assertGreaterThan(info, actual, other); return myself; }
/** * Verifies that the actual value is greater than the given one. * * @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(short other) { shorts.assertGreaterThan(info, actual, other); return myself; }