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