/** * Verifies that the actual value is not equal to the given one. * <p> * Example: * <pre><code class='java'> // assertions will pass * assertThat(true).isNotEqualTo(false); * assertThat(Boolean.FALSE).isNotEqualTo(true); * * // assertions will fail * assertThat(true).isNotEqualTo(true); * assertThat(Boolean.FALSE).isNotEqualTo(false);</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 the given one. */ public SELF isNotEqualTo(boolean other) { booleans.assertNotEqual(info, actual, other); return myself; }
/** * Verifies that the actual value is not equal to the given one. * <p> * Example: * <pre><code class='java'> // assertions will pass * assertThat(true).isNotEqualTo(false); * assertThat(Boolean.FALSE).isNotEqualTo(true); * * // assertions will fail * assertThat(true).isNotEqualTo(true); * assertThat(Boolean.FALSE).isNotEqualTo(false);</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 the given one. */ public SELF isNotEqualTo(boolean other) { booleans.assertNotEqual(info, actual, other); return myself; }
/** * Verifies that the actual value is not 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 equal to the given one. */ public S isNotEqualTo(boolean other) { booleans.assertNotEqual(info, actual, other); return myself; }