Interface CollectionTests.ContainsAllTests<T>
-
- Type Parameters:
T
- The element type of the collection to test.
- All Superinterfaces:
CollectionTests<T>
,IterableTests<T>
- All Known Subinterfaces:
MapTests.EntrySetTests.ContainsAllTests<K,V>
,MapTests.KeySetTests.ContainsAllTests<K,V>
,MapTests.ValuesTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.KeySetTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.ValuesTests.ContainsAllTests<K,V>
- Enclosing interface:
- CollectionTests<T>
@TestInstance(PER_CLASS) @DisplayName("containsAll(Collection)") public static interface CollectionTests.ContainsAllTests<T> extends CollectionTests<T>
Contains tests forCollection.containsAll(Collection)
.By default, the tests in this interface assume that calling
Collection.containsAll(Collection)
with a collection containingnull
or an instance of an incompatible type will simply returnfalse
. If either is not the case, annotate your class withContainsNullNotSupported
and/orContainsIncompatibleNotSupported
.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.CollectionTests
CollectionTests.ClearTests<T>, CollectionTests.ContainsAllTests<T>, CollectionTests.ContainsTests<T>, CollectionTests.RemoveAllArgumentsProvider, CollectionTests.RemoveAllTests<T>, CollectionTests.RemoveArgumentsProvider, CollectionTests.RemoveIfTests<T>, CollectionTests.RemoveTests<T>, CollectionTests.RetainAllArgumentsProvider, CollectionTests.RetainAllTests<T>, CollectionTests.ToArrayTests<T>, CollectionTests.ToArrayWithGeneratorTests<T>, CollectionTests.ToObjectArrayTests<T>
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.IterableTests
IterableTests.ForEachTests<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
testContainsAll()
default void
testContainsAllWithCollectionWithIncompatibleObject(TestInfo testInfo)
default void
testContainsAllWithCollectionWithNull(TestInfo testInfo)
default void
testContainsAllWithNullCollection()
-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.CollectionTests
iterable, nonContainedElements
-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.IterableTests
expectedElements, fixedOrder
-
-
-
-
Method Detail
-
testContainsAll
@Test @DisplayName("containsAll(Collection)") default void testContainsAll()
-
testContainsAllWithNullCollection
@Test @DisplayName("containsAll(Collection) with a null collection") default void testContainsAllWithNullCollection()
-
testContainsAllWithCollectionWithNull
@Test @DisplayName("containsAll(Collection) with a collection with a null") default void testContainsAllWithCollectionWithNull(TestInfo testInfo)
-
testContainsAllWithCollectionWithIncompatibleObject
@Test @DisplayName("containsAll(Collection) with a collection with an incompatible object") default void testContainsAllWithCollectionWithIncompatibleObject(TestInfo testInfo)
-
-