/**
  * Verifies that the actual array contains the given sequence, without any other values between
  * them.
  *
  * <p>Example:
  *
  * <pre><code class='java'> // assertion will pass
  * assertThat(new long[] { 1, 2, 3 }).containsSequence(1, 2);
  *
  * // assertion will fail
  * assertThat(new long[] { 1, 2, 3 }).containsSequence(1, 3);
  * assertThat(new long[] { 1, 2, 3 }).containsSequence(2, 1);</code></pre>
  *
  * @param sequence the sequence of values to look for.
  * @return myself assertion object.
  * @throws AssertionError if the actual array is {@code null}.
  * @throws AssertionError if the given array is {@code null}.
  * @throws AssertionError if the actual array does not contain the given sequence.
  */
 public S containsSequence(long... sequence) {
   arrays.assertContainsSequence(info, actual, sequence);
   return myself;
 }
Пример #2
0
 /**
  * Verifies that the actual array contains the given sequence, without any other values between
  * them.
  *
  * @param sequence the sequence of values to look for.
  * @return this assertion object.
  * @throws AssertionError if the actual array is {@code null}.
  * @throws AssertionError if the given array is {@code null}.
  * @throws AssertionError if the actual array does not contain the given sequence.
  */
 public LongArrayAssert containsSequence(long... sequence) {
   arrays.assertContainsSequence(info, actual, sequence);
   return this;
 }