This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new c87e608bd Add a sanity test for the test framework c87e608bd is described below commit c87e608bd26a2090fe5c03c9afcaeba0bdeba102 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Sep 24 09:49:31 2024 -0400 Add a sanity test for the test framework --- .../collections4/map/HashMapSanityTest.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/test/java/org/apache/commons/collections4/map/HashMapSanityTest.java b/src/test/java/org/apache/commons/collections4/map/HashMapSanityTest.java new file mode 100644 index 000000000..41bde03a6 --- /dev/null +++ b/src/test/java/org/apache/commons/collections4/map/HashMapSanityTest.java @@ -0,0 +1,31 @@ +package org.apache.commons.collections4.map; + +import java.util.HashMap; +import java.util.Map; + +/** + * A sanity test for the test framework. + * + * @param <K> the key type. + * @param <V> the value type. + */ +public class HashMapSanityTest<K, V> extends AbstractMapTest<K, V> { + + public HashMapSanityTest() { + super(HashMapSanityTest.class.getSimpleName()); + } + + /** + * Don't test, just a sanity check for the test framework. + */ + @Override + public boolean isTestSerialization() { + return false; + } + + @Override + public Map<K, V> makeObject() { + return new HashMap<>(); + } + +}