You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/10/28 18:03:07 UTC
[commons-collections] branch master updated: add a junit for the
HeadMap in the UnmodifiableSortedMapTest (#93)
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 66cc90f add a junit for the HeadMap in the UnmodifiableSortedMapTest (#93)
66cc90f is described below
commit 66cc90ff1d3e346c8771b8f8e520f97de15405e5
Author: dota17 <50...@users.noreply.github.com>
AuthorDate: Tue Oct 29 02:02:59 2019 +0800
add a junit for the HeadMap in the UnmodifiableSortedMapTest (#93)
---
.../commons/collections4/map/UnmodifiableSortedMapTest.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/test/java/org/apache/commons/collections4/map/UnmodifiableSortedMapTest.java b/src/test/java/org/apache/commons/collections4/map/UnmodifiableSortedMapTest.java
index fd6c5fa..73041dd 100644
--- a/src/test/java/org/apache/commons/collections4/map/UnmodifiableSortedMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/UnmodifiableSortedMapTest.java
@@ -81,6 +81,15 @@ public class UnmodifiableSortedMapTest<K, V> extends AbstractSortedMapTest<K, V>
//-----------------------------------------------------------------------
+ public void testHeadMap() {
+ final SortedMap<K, V> map = makeFullMap();
+ final SortedMap<K, V> m = new TreeMap<>();
+ //again is the first key of the map
+ assertSame(m.isEmpty(), map.headMap((K)"again").isEmpty());
+ }
+
+ //-----------------------------------------------------------------------
+
@Override
public String getCompatibilityVersion() {
return "4";