Interface UnmodifiableMapTests.ValuesTests<K,V>
-
- Type Parameters:
K
- The key type of the map to test.V
- The value type of the map to test.
- All Superinterfaces:
CollectionTests<V>
,IterableTests<V>
,MapTests<K,V>
,UnmodifiableMapTests<K,V>
- All Known Subinterfaces:
UnmodifiableMapTests.ValuesTests.AddAllTests<K,V>
,UnmodifiableMapTests.ValuesTests.AddTests<K,V>
,UnmodifiableMapTests.ValuesTests.ClearTests<K,V>
,UnmodifiableMapTests.ValuesTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.ValuesTests.ContainsTests<K,V>
,UnmodifiableMapTests.ValuesTests.ForEachTests<K,V>
,UnmodifiableMapTests.ValuesTests.IteratorTests<K,V>
,UnmodifiableMapTests.ValuesTests.IteratorTests.ForEachRemainingTests<K,V>
,UnmodifiableMapTests.ValuesTests.IteratorTests.IterationTests<K,V>
,UnmodifiableMapTests.ValuesTests.IteratorTests.RemoveTests<K,V>
,UnmodifiableMapTests.ValuesTests.RemoveAllTests<K,V>
,UnmodifiableMapTests.ValuesTests.RemoveIfTests<K,V>
,UnmodifiableMapTests.ValuesTests.RemoveTests<K,V>
,UnmodifiableMapTests.ValuesTests.RetainAllTests<K,V>
,UnmodifiableMapTests.ValuesTests.ToArrayTests<K,V>
,UnmodifiableMapTests.ValuesTests.ToArrayWithGeneratorTests<K,V>
,UnmodifiableMapTests.ValuesTests.ToObjectArrayTests<K,V>
- Enclosing interface:
- UnmodifiableMapTests<K,V>
@DisplayName("values()") public static interface UnmodifiableMapTests.ValuesTests<K,V> extends UnmodifiableMapTests<K,V>, CollectionTests<V>
Contains tests forMap.values()
.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.CollectionTests
CollectionTests.RemoveAllArgumentsProvider, CollectionTests.RemoveArgumentsProvider, CollectionTests.RetainAllArgumentsProvider
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.MapTests
MapTests.ContainsKeyTests<K,V>, MapTests.ContainsValueTests<K,V>, MapTests.EqualsArgumentsProvider, MapTests.EqualsTests<K,V>, MapTests.GetOrDefaultTests<K,V>, MapTests.GetTests<K,V>, MapTests.HashCodeTests<K,V>, MapTests.RemoveArgumentsProvider, MapTests.RemoveExactValueArgumentsProvider
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.UnmodifiableMapTests
UnmodifiableMapTests.ComputeIfAbsentTests<K,V>, UnmodifiableMapTests.ComputeIfPresentTests<K,V>, UnmodifiableMapTests.ComputeTests<K,V>, UnmodifiableMapTests.EntrySetTests<K,V>, UnmodifiableMapTests.KeySetTests<K,V>, UnmodifiableMapTests.MergeTests<K,V>, UnmodifiableMapTests.PutAllTests<K,V>, UnmodifiableMapTests.PutIfAbsentTests<K,V>, UnmodifiableMapTests.PutTests<K,V>, UnmodifiableMapTests.RemoveExactValueTests<K,V>, UnmodifiableMapTests.ReplaceAllTests<K,V>, UnmodifiableMapTests.ReplaceExactValueTests<K,V>, UnmodifiableMapTests.ReplaceTests<K,V>, UnmodifiableMapTests.ValuesTests<K,V>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Collection<V>
expectedElements()
Returns the expected elements contained by the iterable to test.default Collection<V>
iterable()
Returns the iterable to test.default Collection<V>
nonContainedElements()
Returns some elements that should not be contained by the collection to test.-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.IterableTests
fixedOrder
-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.MapTests
expectedEntries, map, nonContainedEntries
-
-
-
-
Method Detail
-
iterable
default Collection<V> iterable()
Description copied from interface:IterableTests
Returns the iterable to test. This should be populated, i.e. not empty, unless the iterable can only be empty.This method will be called only once for each test. This makes it possible to initialize the iterable in a method annotated with
BeforeEach
, and perform additional tests after the pre-defined test has finished.- Specified by:
iterable
in interfaceCollectionTests<K>
- Specified by:
iterable
in interfaceIterableTests<K>
- Returns:
- The iterable to test.
-
expectedElements
default Collection<V> expectedElements()
Description copied from interface:IterableTests
Returns the expected elements contained by the iterable to test. This should not be of the same type as the iterable to test, but preferably of some well-known iterable type likeArrayList
orHashSet
.- Specified by:
expectedElements
in interfaceIterableTests<K>
- Returns:
- The expected elements contained by the iterable to test.
-
nonContainedElements
default Collection<V> nonContainedElements()
Description copied from interface:CollectionTests
Returns some elements that should not be contained by the collection to test.- Specified by:
nonContainedElements
in interfaceCollectionTests<K>
- Returns:
- A collection with elements that should not be contained by the collection to test.
-
-