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