/** * Verifies that the actual array does not contain the given values. * <p> * If you want to set a precision for the comparison either use {@link #doesNotContain(double[], Offset)} * or {@link #usingComparatorWithPrecision(Double)} before calling the assertion. * <p> * Example: * <pre><code class='java'> double[] values = new double[] { 1.0, 2.0, 3.0 }; * * // assertion will pass * assertThat(values).doesNotContain(4.0, 8.0) * .usingComparatorWithPrecision(0.0001) * .doesNotContain(1.01, 2.01); * * // assertions will fail * assertThat(values).doesNotContain(1.0, 4.0, 8.0); * assertThat(values).usingComparatorWithPrecision(0.1) * .doesNotContain(1.001, 2.001);</code></pre> * * @param values the given values. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws IllegalArgumentException if the given argument is an empty array. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array contains any of the given values. */ public SELF doesNotContain(double... values) { arrays.assertDoesNotContain(info, actual, values); return myself; }
arrays.assertDoesNotContain(info, actual, value, index); return myself;
/** * Verifies that the actual array does not contain the given values. * <p> * If you want to set a precision for the comparison either use {@link #doesNotContain(double[], Offset)} * or {@link #usingComparatorWithPrecision(Double)} before calling the assertion. * <p> * Example: * <pre><code class='java'> double[] values = new double[] { 1.0, 2.0, 3.0 }; * * // assertion will pass * assertThat(values).doesNotContain(4.0, 8.0) * .usingComparatorWithPrecision(0.0001) * .doesNotContain(1.01, 2.01); * * // assertions will fail * assertThat(values).doesNotContain(1.0, 4.0, 8.0); * assertThat(values).usingComparatorWithPrecision(0.1) * .doesNotContain(1.001, 2.001);</code></pre> * * @param values the given values. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws IllegalArgumentException if the given argument is an empty array. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array contains any of the given values. */ public SELF doesNotContain(double... values) { arrays.assertDoesNotContain(info, actual, values); return myself; }
arrays.assertDoesNotContain(info, actual, value, index); return myself;
/** * Verifies that the actual array does not contain the given values. * <p> * Example: * * <pre><code class='java'> * // assertion will pass * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(4.0, 8.0); * * // assertion will fail * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(1.0, 2.0, 3.0); * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(3.0, 1.0); * </code></pre> * * </p> * * @param values the given values. * @return {@code this} assertion object. * @throws NullPointerException if the given argument is {@code null}. * @throws IllegalArgumentException if the given argument is an empty array. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array contains any of the given values. */ public S doesNotContain(double... values) { arrays.assertDoesNotContain(info, actual, values); return myself; }
/** * Verifies that the actual array does not contain the given value at the given index. * <p> * Example: * * <pre><code class='java'> * // assertion will pass * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(1.0, atIndex(1)); * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(2.0, atIndex(0)); * * // assertion will fail * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(1.0, atIndex(0)); * assertThat(new double[] { 1.0, 2.0, 3.0 }).doesNotContain(2.0, atIndex(1)); * </code></pre> * * </p> * * @param value the value to look for. * @param index the index where the value should be stored in the actual array. * @return myself assertion object. * @throws AssertionError if the actual array is {@code null}. * @throws NullPointerException if the given {@code Index} is {@code null}. * @throws AssertionError if the actual array contains the given value at the given index. */ public S doesNotContain(double value, Index index) { arrays.assertDoesNotContain(info, actual, value, index); return myself; }