Interface MapTests<K,V>
-
- Type Parameters:
K
- The key type of the map to test.V
- The value type of the map to test.
- All Known Subinterfaces:
MapEntryTests<K,V>
,MapEntryTests.EqualsTests<K,V>
,MapEntryTests.GetValueTests<K,V>
,MapEntryTests.HashCodeTests<K,V>
,MapEntryTests.SetValueTests<K,V>
,MapTests.ClearTests<K,V>
,MapTests.ComputeIfAbsentTests<K,V>
,MapTests.ComputeIfPresentTests<K,V>
,MapTests.ComputeTests<K,V>
,MapTests.ContainsKeyTests<K,V>
,MapTests.ContainsValueTests<K,V>
,MapTests.EntrySetTests<K,V>
,MapTests.EntrySetTests.AddAllTests<K,V>
,MapTests.EntrySetTests.AddTests<K,V>
,MapTests.EntrySetTests.ClearTests<K,V>
,MapTests.EntrySetTests.ContainsAllTests<K,V>
,MapTests.EntrySetTests.ContainsTests<K,V>
,MapTests.EntrySetTests.EqualsTests<K,V>
,MapTests.EntrySetTests.ForEachTests<K,V>
,MapTests.EntrySetTests.HashCodeTests<K,V>
,MapTests.EntrySetTests.IteratorTests<K,V>
,MapTests.EntrySetTests.IteratorTests.ForEachRemainingTests<K,V>
,MapTests.EntrySetTests.IteratorTests.IterationTests<K,V>
,MapTests.EntrySetTests.IteratorTests.RemoveTests<K,V>
,MapTests.EntrySetTests.RemoveAllTests<K,V>
,MapTests.EntrySetTests.RemoveIfTests<K,V>
,MapTests.EntrySetTests.RemoveTests<K,V>
,MapTests.EntrySetTests.RetainAllTests<K,V>
,MapTests.EntrySetTests.SpliteratorTests<K,V>
,MapTests.EntrySetTests.ToArrayTests<K,V>
,MapTests.EntrySetTests.ToArrayWithGeneratorTests<K,V>
,MapTests.EntrySetTests.ToObjectArrayTests<K,V>
,MapTests.EqualsTests<K,V>
,MapTests.ForEachTests<K,V>
,MapTests.GetOrDefaultTests<K,V>
,MapTests.GetTests<K,V>
,MapTests.HashCodeTests<K,V>
,MapTests.KeySetTests<K,V>
,MapTests.KeySetTests.AddAllTests<K,V>
,MapTests.KeySetTests.AddTests<K,V>
,MapTests.KeySetTests.ClearTests<K,V>
,MapTests.KeySetTests.ContainsAllTests<K,V>
,MapTests.KeySetTests.ContainsTests<K,V>
,MapTests.KeySetTests.EqualsTests<K,V>
,MapTests.KeySetTests.ForEachTests<K,V>
,MapTests.KeySetTests.HashCodeTests<K,V>
,MapTests.KeySetTests.IteratorTests<K,V>
,MapTests.KeySetTests.IteratorTests.ForEachRemainingTests<K,V>
,MapTests.KeySetTests.IteratorTests.IterationTests<K,V>
,MapTests.KeySetTests.IteratorTests.RemoveTests<K,V>
,MapTests.KeySetTests.RemoveAllTests<K,V>
,MapTests.KeySetTests.RemoveIfTests<K,V>
,MapTests.KeySetTests.RemoveTests<K,V>
,MapTests.KeySetTests.RetainAllTests<K,V>
,MapTests.KeySetTests.SpliteratorTests<K,V>
,MapTests.KeySetTests.ToArrayTests<K,V>
,MapTests.KeySetTests.ToArrayWithGeneratorTests<K,V>
,MapTests.KeySetTests.ToObjectArrayTests<K,V>
,MapTests.MergeTests<K,V>
,MapTests.PutAllTests<K,V>
,MapTests.PutIfAbsentTests<K,V>
,MapTests.PutTests<K,V>
,MapTests.RemoveExactValueTests<K,V>
,MapTests.RemoveTests<K,V>
,MapTests.ReplaceAllTests<K,V>
,MapTests.ReplaceExactValueTests<K,V>
,MapTests.ReplaceTests<K,V>
,MapTests.ValuesTests<K,V>
,MapTests.ValuesTests.AddAllTests<K,V>
,MapTests.ValuesTests.AddTests<K,V>
,MapTests.ValuesTests.ClearTests<K,V>
,MapTests.ValuesTests.ContainsAllTests<K,V>
,MapTests.ValuesTests.ContainsTests<K,V>
,MapTests.ValuesTests.ForEachTests<K,V>
,MapTests.ValuesTests.IteratorTests<K,V>
,MapTests.ValuesTests.IteratorTests.ForEachRemainingTests<K,V>
,MapTests.ValuesTests.IteratorTests.IterationTests<K,V>
,MapTests.ValuesTests.IteratorTests.RemoveTests<K,V>
,MapTests.ValuesTests.RemoveAllTests<K,V>
,MapTests.ValuesTests.RemoveIfTests<K,V>
,MapTests.ValuesTests.RemoveTests<K,V>
,MapTests.ValuesTests.RetainAllTests<K,V>
,MapTests.ValuesTests.ToArrayTests<K,V>
,MapTests.ValuesTests.ToArrayWithGeneratorTests<K,V>
,MapTests.ValuesTests.ToObjectArrayTests<K,V>
,UnmodifiableMapEntryTests<K,V>
,UnmodifiableMapEntryTests.SetValueTests<K,V>
,UnmodifiableMapTests<K,V>
,UnmodifiableMapTests.ClearTests<K,V>
,UnmodifiableMapTests.ComputeIfAbsentTests<K,V>
,UnmodifiableMapTests.ComputeIfPresentTests<K,V>
,UnmodifiableMapTests.ComputeTests<K,V>
,UnmodifiableMapTests.EntrySetTests<K,V>
,UnmodifiableMapTests.EntrySetTests.AddAllTests<K,V>
,UnmodifiableMapTests.EntrySetTests.AddTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ClearTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ContainsTests<K,V>
,UnmodifiableMapTests.EntrySetTests.EqualsTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ForEachTests<K,V>
,UnmodifiableMapTests.EntrySetTests.HashCodeTests<K,V>
,UnmodifiableMapTests.EntrySetTests.IteratorTests<K,V>
,UnmodifiableMapTests.EntrySetTests.IteratorTests.ForEachRemainingTests<K,V>
,UnmodifiableMapTests.EntrySetTests.IteratorTests.IterationTests<K,V>
,UnmodifiableMapTests.EntrySetTests.IteratorTests.RemoveTests<K,V>
,UnmodifiableMapTests.EntrySetTests.RemoveAllTests<K,V>
,UnmodifiableMapTests.EntrySetTests.RemoveIfTests<K,V>
,UnmodifiableMapTests.EntrySetTests.RemoveTests<K,V>
,UnmodifiableMapTests.EntrySetTests.RetainAllTests<K,V>
,UnmodifiableMapTests.EntrySetTests.SpliteratorTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ToArrayTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ToArrayWithGeneratorTests<K,V>
,UnmodifiableMapTests.EntrySetTests.ToObjectArrayTests<K,V>
,UnmodifiableMapTests.KeySetTests<K,V>
,UnmodifiableMapTests.KeySetTests.AddAllTests<K,V>
,UnmodifiableMapTests.KeySetTests.AddTests<K,V>
,UnmodifiableMapTests.KeySetTests.ClearTests<K,V>
,UnmodifiableMapTests.KeySetTests.ContainsAllTests<K,V>
,UnmodifiableMapTests.KeySetTests.ContainsTests<K,V>
,UnmodifiableMapTests.KeySetTests.EqualsTests<K,V>
,UnmodifiableMapTests.KeySetTests.ForEachTests<K,V>
,UnmodifiableMapTests.KeySetTests.HashCodeTests<K,V>
,UnmodifiableMapTests.KeySetTests.IteratorTests<K,V>
,UnmodifiableMapTests.KeySetTests.IteratorTests.ForEachRemainingTests<K,V>
,UnmodifiableMapTests.KeySetTests.IteratorTests.IterationTests<K,V>
,UnmodifiableMapTests.KeySetTests.IteratorTests.RemoveTests<K,V>
,UnmodifiableMapTests.KeySetTests.RemoveAllTests<K,V>
,UnmodifiableMapTests.KeySetTests.RemoveIfTests<K,V>
,UnmodifiableMapTests.KeySetTests.RemoveTests<K,V>
,UnmodifiableMapTests.KeySetTests.RetainAllTests<K,V>
,UnmodifiableMapTests.KeySetTests.SpliteratorTests<K,V>
,UnmodifiableMapTests.KeySetTests.ToArrayTests<K,V>
,UnmodifiableMapTests.KeySetTests.ToArrayWithGeneratorTests<K,V>
,UnmodifiableMapTests.KeySetTests.ToObjectArrayTests<K,V>
,UnmodifiableMapTests.MergeTests<K,V>
,UnmodifiableMapTests.PutAllTests<K,V>
,UnmodifiableMapTests.PutIfAbsentTests<K,V>
,UnmodifiableMapTests.PutTests<K,V>
,UnmodifiableMapTests.RemoveExactValueTests<K,V>
,UnmodifiableMapTests.RemoveTests<K,V>
,UnmodifiableMapTests.ReplaceAllTests<K,V>
,UnmodifiableMapTests.ReplaceExactValueTests<K,V>
,UnmodifiableMapTests.ReplaceTests<K,V>
,UnmodifiableMapTests.ValuesTests<K,V>
,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>
public interface MapTests<K,V>
Base interface for testing separateMap
functionalities.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<K,V>
expectedEntries()
Returns a map with the expected entries contained by the map to test.Map<K,V>
map()
Returns the map to test.Map<K,V>
nonContainedEntries()
Returns some entries that should not be contained by the map to test.
-
-
-
Method Detail
-
map
Map<K,V> map()
Returns the map to test. This should be populated, i.e. not empty, unless the map can only be empty.This method will be called only once for each test. This makes it possible to initialize the map in a method annotated with
BeforeEach
, and perform additional tests after the pre-defined test has finished.- Returns:
- The map to test.
-
expectedEntries
Map<K,V> expectedEntries()
Returns a map with the expected entries contained by the map to test. This should not be of the same type as the map to test, but preferably of some well-known map type likeHashMap
.- Returns:
- A map with the expected entries contained by the map to test.
-
nonContainedEntries
Map<K,V> nonContainedEntries()
Returns some entries that should not be contained by the map to test. For bothMap.keySet()
andMap.values()
, the returned map should have no common elements withexpectedEntries()
.- Returns:
- A map with entries that should not be contained by the entries to test.
-
-