/**
  * Verifies that the actual array does not contain the given value at the given index.
  *
  * <p>Example:
  *
  * <pre><code class='java'> // assertions will pass
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(1L, atIndex(1));
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(2L, atIndex(0));
  *
  * // assertions will fail
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(1L, atIndex(0));
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(2L, atIndex(1));</code></pre>
  *
  * @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(long value, Index index) {
   arrays.assertDoesNotContain(info, actual, value, index);
   return myself;
 }
Esempio n. 2
0
 /**
  * Verifies that the actual array does not contain the given value at the given index.
  *
  * @param value the value to look for.
  * @param index the index where the value should be stored in the actual array.
  * @return this 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 LongArrayAssert doesNotContain(long value, Index index) {
   arrays.assertDoesNotContain(info, actual, value, index);
   return this;
 }
 /**
  * Verifies that the actual array does not contain the given values.
  *
  * <p>Example:
  *
  * <pre><code class='java'> // assertion will pass
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(4L);
  *
  * // assertion will fail
  * assertThat(new long[] { 1L, 2L, 3L }).doesNotContain(2L);</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 S doesNotContain(long... values) {
   arrays.assertDoesNotContain(info, actual, values);
   return myself;
 }
Esempio n. 4
0
 /**
  * Verifies that the actual array does not contain the given values.
  *
  * @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 LongArrayAssert doesNotContain(long... values) {
   arrays.assertDoesNotContain(info, actual, values);
   return this;
 }