/** * Verifies that the actual AtomicReferenceArray does not contain null elements. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> abNull = new AtomicReferenceArray<>(new String[]{"a", "b", null}); * * // assertion will pass * assertThat(abc).doesNotContainNull(); * * // assertion will fail * assertThat(abNull).doesNotContainNull();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray contains a null element. */ @Override public AtomicReferenceArrayAssert<T> doesNotContainNull() { arrays.assertDoesNotContainNull(info, array); return myself; }
/** * Verifies that the actual array does not contain null elements. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] abNull = {"a", "b", null}; * * // assertion will pass * assertThat(abc).doesNotContainNull(); * * // assertion will fail * assertThat(abNull).doesNotContainNull();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual group is {@code null}. * @throws AssertionError if the actual group contains a null element. */ @Override public SELF doesNotContainNull() { arrays.assertDoesNotContainNull(info, actual); return myself; }
/** * Verifies that the actual array does not contain null elements. * <p> * Example : * <pre><code class='java'> String[] abc = {"a", "b", "c"}; * String[] abNull = {"a", "b", null}; * * // assertion will pass * assertThat(abc).doesNotContainNull(); * * // assertion will fail * assertThat(abNull).doesNotContainNull();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual array is {@code null}. * @throws AssertionError if the actual array contains a null element. */ @Override public SELF doesNotContainNull() { arrays.assertDoesNotContainNull(info, actual); return myself; }
/** * Verifies that the actual AtomicReferenceArray does not contain null elements. * <p> * Example : * <pre><code class='java'> AtomicReferenceArray<String> abc = new AtomicReferenceArray<>(new String[]{"a", "b", "c"}); * AtomicReferenceArray<String> abNull = new AtomicReferenceArray<>(new String[]{"a", "b", null}); * * // assertion will pass * assertThat(abc).doesNotContainNull(); * * // assertion will fail * assertThat(abNull).doesNotContainNull();</code></pre> * * @return {@code this} assertion object. * @throws AssertionError if the actual AtomicReferenceArray is {@code null}. * @throws AssertionError if the actual AtomicReferenceArray contains a null element. */ @Override public AtomicReferenceArrayAssert<T> doesNotContainNull() { arrays.assertDoesNotContainNull(info, array); return myself; }
/** {@inheritDoc} */ @Override public S doesNotContainNull() { arrays.assertDoesNotContainNull(info, actual); return myself; }