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