/** * Verifies that the actual value is less than or equal to the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass: * assertThat(Short.valueOf("1")).isLessThanOrEqualTo((short) 1); * * // assertion will fail: * assertThat(Short.valueOf("1")).isLessThanOrEqualTo((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 greater than the given one. */ public SELF isLessThanOrEqualTo(short other) { shorts.assertLessThanOrEqualTo(info, actual, other); return myself; }
/** * Verifies that the actual value is less than or equal to the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass: * assertThat(Short.valueOf("1")).isLessThanOrEqualTo((short) 1); * * // assertion will fail: * assertThat(Short.valueOf("1")).isLessThanOrEqualTo((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 greater than the given one. */ public SELF isLessThanOrEqualTo(short other) { shorts.assertLessThanOrEqualTo(info, actual, other); return myself; }
/** * Verifies that the actual value is less than or equal to 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 greater than the given one. */ public S isLessThanOrEqualTo(short other) { shorts.assertLessThanOrEqualTo(info, actual, other); return myself; }